Description
The Group
property of the PhysicsWorld
class represents the physics group associated with this physics world. A physics world is designed to contain only one body, and this property provides access to the PhysicsGroup
that manages the interactions and properties of that body within the world.
Usage
To access the Group
property, you need to have an instance of the PhysicsWorld
class. Once you have the instance, you can retrieve the PhysicsGroup
by simply accessing the Group
property.
Example
// Assuming 'physicsWorld' is an instance of PhysicsWorld
PhysicsGroup physicsGroup = physicsWorld.Group;
// You can now use 'physicsGroup' to manage physics interactions within this world.