Click or drag to resize
RigidBody Constructor (ICollisionShape, Single, Single, Single)
Create the physical body from shape instance.

Namespace:  GeonBit.ECS.Components.Physics
Assembly:  GeonBit (in GeonBit.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
C#
public RigidBody(
	ICollisionShape shape,
	float mass = 0f,
	float inertia = 0f,
	float friction = 1f
)

Parameters

shape
Type: GeonBit.Core.Physics.CollisionShapesICollisionShape
Physical shape to use.
mass (Optional)
Type: SystemSingle
Body mass (0 for static).
inertia (Optional)
Type: SystemSingle
Body inertia (0 for static).
friction (Optional)
Type: SystemSingle
Body friction.
See Also