Метод | Описание | |
---|---|---|
AddBounce ( |
Add a bounce between two CollisionUnits based on the velocity.
|
|
AddCollisionUnit ( |
Add a CollisionUnit to associate with this PhysicsBaby.
|
|
AddForce ( Vector2 force ) : void |
Add a force.
|
|
AddVelocity ( Vector2 velocity ) : void |
Add velocity to the PhysicsBaby's velocity.
|
|
GetForces ( ) : Vector2 |
Get the total, additional, forces.
|
|
GetVelocity ( ) : Vector2 |
Get the current total velocity.
|
|
IsStatic ( ) : bool |
Get if the PhysicsBaby is static (doesn't move).
|
|
PhysicsBaby ( System.Entity owner ) : System |
Instantiate a new PhysicsBaby for a specific Entity.
|
|
SetForces ( Vector2 forces ) : void |
Set the total, additional, forces.
|
|
SetStatic ( bool beStatic ) : void |
Set if the PhysicsBaby is static (doesn't move).
|
|
SetVelocity ( Vector2 velocity ) : void |
Set the total velocity.
|
|
Update ( |
Update the position and velocity of the PhysicsBaby.
|
public AddBounce ( |
||
unit | The main collision unit involved in the "bounce". | |
other | The secondary collision unit involved in the "bounce". | |
Результат | void |
public AddCollisionUnit ( |
||
unit | The CollisionUnit to add. | |
Результат | void |
public AddForce ( Vector2 force ) : void | ||
force | Vector2 | The delta force to add. |
Результат | void |
public AddVelocity ( Vector2 velocity ) : void | ||
velocity | Vector2 | The delta velocity to add to the current velocity. |
Результат | void |
public PhysicsBaby ( System.Entity owner ) : System | ||
owner | System.Entity | The Entity that "owns" this PhysicsBaby. |
Результат | System |
public SetForces ( Vector2 forces ) : void | ||
forces | Vector2 | Total additional forces. |
Результат | void |
public SetStatic ( bool beStatic ) : void | ||
beStatic | bool | true if the PhysicsBaby is static, false if otherwise. |
Результат | void |
public SetVelocity ( Vector2 velocity ) : void | ||
velocity | Vector2 | The velocity for the PhysicsBaby. |
Результат | void |
public Update ( |
||
gameTime | The current GameTime. | |
Результат | void |