PhysicsService

The PhysicsService service is responsible for managing collision groups.

Function

Description

RegisterCollisionGroup(GroupName: string, Unregister: bool): nil

Registers a new collision group in the physics service. Requires 2 arguments: GroupName (string) representing the name of the collision group and Unregister (boolean) indicating whether to unregister the group. Returns nil.

SetCollidable(GroupName1: string, GroupName2: string, Collidable: bool): nil

Sets the collidable status between two collision groups. Requires 3 arguments: GroupName1 (string), GroupName2 (string), and Collidable (boolean) indicating whether the groups should be collidable with each other. Returns nil.

Last updated