Type PhysicsBody
Namespace
GloryEngine.Entities
Summary
Handle for a PhysicsBody component
Properties
BodyID
Internal ID of the Physics managed by the PhysicsModule
BodyActive
Whether the Physics is active and awake
Valid
Whether this component has a valid Physics
BodyType
Body type
Position
Position of the Physics
Use this instead of Transform.Position
Rotation
Rotation of the Physics
Use this instead of Transform.Rotation
Scale
Scale of the Physics
Use this together with Transform.Scale
CenterOfMassPosition
Position of the center of mass of the Physics
LinearVelocity
The current linear velocity of the Physics
AngularVelocity
The current angular velocity of the Physics
Fields
DefaultActivationType
Default activation type to pass to function calls
Methods
MoveKinematic(GloryEngine.Vector3@,GloryEngine.Quaternion@,System.Single)
Set velocity of such that it will be positioned at inTargetPosition/Rotation in inDeltaTime seconds (will activate if needed)
AddForce(GloryEngine.Vector3@)
Add a force to the Physics
AddForce(GloryEngine.Vector3@,GloryEngine.Vector3@)
Add a force to the Physics from a point
AddTorque(GloryEngine.Vector3@)
Add a torque to the Physics
AddForceAndTorque(GloryEngine.Vector3@,GloryEngine.Vector3@)
Add both force and torque to the Physics
AddImpulse(GloryEngine.Vector3@)
Add an impulse to the Physics
AddImpulse(GloryEngine.Vector3@,GloryEngine.Vector3@)
Add a force to the Physics from a point
AddAngularImpulse(GloryEngine.Vector3@)
Add an angular impulse to the Physics
AddLinearVelocity(GloryEngine.Vector3@)
Add a vector to the linear velocity of the Physics
GetPointVelocity(GloryEngine.Vector3@)
Get the velocity of the Physics from a point