|
TrueSync
|
Represents an interface to 2D bodies. More...
Public Member Functions | |
| void | TSApplyForce (TSVector2 force) |
| Applies a force to the body's center. | |
| void | TSApplyForce (TSVector2 force, TSVector2 position) |
| Applies a force to the body at a specific position. | |
| void | TSApplyImpulse (TSVector2 force) |
| Applies a impulse to the body's center. | |
| void | TSApplyImpulse (TSVector2 force, TSVector2 position) |
| Applies a impulse to the body at a specific position. | |
| void | TSApplyTorque (TSVector2 force) |
| Applies a torque force to the body. | |
Public Member Functions inherited from TrueSync.IBody | |
| string | Checkum () |
| void | TSUpdate () |
Properties | |
| TSVector2 | TSPosition [get, set] |
| Set/get body's position. | |
| FP | TSOrientation [get, set] |
| Set/get body's orientation. | |
| bool | TSAffectedByGravity [get, set] |
| If true the body is affected by gravity. | |
| bool | TSIsKinematic [get, set] |
| If true the body is managed as kinematic. | |
| TSVector2 | TSLinearVelocity [get, set] |
| Set/get body's linear velocity. | |
| FP | TSAngularVelocity [get, set] |
| Set/get body's angular velocity. (radians/s). | |
| FP | TSLinearDamping [get, set] |
| Set/get body's linear damping (0 to 1). | |
| FP | TSAngularDamping [get, set] |
| Set/get body's angular damping (0 to 1). | |
Properties inherited from TrueSync.IBody | |
| bool | TSDisabled [get, set] |
| If true the body doesn't interfere in physics simulation. | |
| bool | TSIsStatic [get, set] |
| If true the body doesn't move around by collisions. | |
Represents an interface to 2D bodies.
Definition at line 6 of file IBody2D.cs.
1.8.11