GeonBit Documentation
GeonBit Documentation
GeonBit
GeonBit.ECS.Components.Physics
RigidBody Class
RigidBody Constructor
RigidBody Constructor (IBodyShapeInfo, Single, Single, Single)
RigidBody Constructor (ICollisionShape, Single, Single, Single)
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#
Copy
public
RigidBody
(
ICollisionShape
shape
,
float
mass
= 0f,
float
inertia
= 0f,
float
friction
= 1f )
Parameters
shape
Type:
GeonBit.Core.Physics.CollisionShapes
ICollisionShape
Physical shape to use.
mass
(Optional)
Type:
System
Single
Body mass (0 for static).
inertia
(Optional)
Type:
System
Single
Body inertia (0 for static).
friction
(Optional)
Type:
System
Single
Body friction.
See Also
Reference
RigidBody Class
RigidBody Overload
GeonBit.ECS.Components.Physics Namespace
GeonBit ECS game Engine. By Ronen Ness, 2017.
Send comments on this topic to
ronenness@gmail.com