프로퍼티 | 타입 | 설명 | |
---|---|---|---|
shouldUseGravity | bool | ||
velocity | Vector2 |
메소드 | 설명 | |
---|---|---|
ArcadeRigidbody ( ) : System | ||
IUpdatable ( ) : void | ||
addImpulse ( Vector2 force ) : void |
add an instant force impulse to the rigidbody using its mass. force is an acceleration in pixels per second per second. The force is multiplied by 100000 to make the values more reasonable to use.
|
|
calculateResponseVelocity ( Vector2 &relativeVelocity, Vector2 &minimumTranslationVector, Vector2 &responseVelocity ) : void |
given the relative velocity between the two objects and the MTV this method modifies the relativeVelocity to make it a collision response.
|
|
onAddedToEntity ( ) : void | ||
processCollision ( |
handles the collision of two non-overlapping rigidbodies. New velocities will be assigned to each rigidbody as appropriate.
|
|
processOverlap ( |
separates two overlapping rigidbodies. Handles the case of either being immovable as well.
|
|
setElasticity ( float value ) : |
0 - 1 range where 0 is no bounce and 1 is perfect reflection
|
|
setFriction ( float value ) : |
0 - 1 range. 0 means no friction, 1 means the object will stop dead on
|
|
setGlue ( float value ) : |
0 - 9 range. When a collision occurs and it has risidual motion along the surface of collision if its square magnitude is less than glue friction will be set to the maximum for the collision resolution.
|
|
setMass ( float mass ) : |
mass of this rigidbody. A 0 mass will make this an immovable object.
|
|
setVelocity ( Vector2 velocity ) : |
velocity of this rigidbody
|
public calculateResponseVelocity ( Vector2 &relativeVelocity, Vector2 &minimumTranslationVector, Vector2 &responseVelocity ) : void | ||
relativeVelocity | Vector2 | Relative velocity. |
minimumTranslationVector | Vector2 | Minimum translation vector. |
responseVelocity | Vector2 | |
리턴 | void |
public processCollision ( |
||
other | Other. | |
minimumTranslationVector | Vector2 | |
리턴 | void |
public processOverlap ( |
||
other | Other. | |
minimumTranslationVector | Vector2 | |
리턴 | void |
public setElasticity ( float value ) : |
||
value | float | Value. |
리턴 |
public setFriction ( float value ) : |
||
value | float | Value. |
리턴 |
public setGlue ( float value ) : |
||
value | float | Value. |
리턴 |
public setMass ( float mass ) : |
||
mass | float | Mass. |
리턴 |
public setVelocity ( Vector2 velocity ) : |
||
velocity | Vector2 | Velocity. |
리턴 |