Click or drag to resize
RigidBody Constructor (IBodyShapeInfo, Single, Single, Single)
Create the physical body.

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

Parameters

shapeInfo
Type: GeonBit.ECS.Components.PhysicsIBodyShapeInfo
Body shape info.
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