Click or drag to resize
RigidBody Constructor
Create the physical entity.

Namespace:  GeonBit.Core.Physics
Assembly:  GeonBit (in GeonBit.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
C#
public RigidBody(
	ICollisionShape shape,
	float mass = 10f,
	float inertia = 1f,
	Nullable<Matrix> transformations = null
)

Parameters

shape
Type: GeonBit.Core.Physics.CollisionShapesICollisionShape
Collision shape that define this body.
mass (Optional)
Type: SystemSingle
Body mass (in kg), or 0 for static.
inertia (Optional)
Type: SystemSingle
Body inertia, or 0 for static.
transformations (Optional)
Type: SystemNullableMatrix
Starting transformations.
See Also