Class BoxRigidBody
Defines a box-shaped rigid body behavior for 3D physics simulations.
Inherited Members
Namespace: Genesis.Core.Behaviors.Physics3D
Assembly: Genesis.dll
Syntax
public class BoxRigidBody : RigidBodyBehavior3D
Constructors
BoxRigidBody(PhysicHandler)
Constructor for creating a BoxRigidBody behavior.
Declaration
public BoxRigidBody(PhysicHandler handler)
Parameters
Type | Name | Description |
---|---|---|
PhysicHandler | handler | The physics handler managing this rigid body. |
Methods
CreateRigidBody(Vec3, float)
Creates a box-shaped rigid body with the specified half extends, mass, and physics handler.
Declaration
public void CreateRigidBody(Vec3 boxHalfExtends, float mass)
Parameters
Type | Name | Description |
---|---|---|
Vec3 | boxHalfExtends | Half extends of the box rigid body. |
float | mass | Mass of the rigid body. |
CreateRigidBody(float)
Creates a box-shaped rigid body using the parent's size and the specified mass.
Declaration
public override void CreateRigidBody(float mass)
Parameters
Type | Name | Description |
---|---|---|
float | mass | The mass of the rigid body. |