Свойство | Тип | Описание | |
---|---|---|---|
aabb | |||
base_shape | |||
bitmaskx | |||
bitmasky | |||
count | int | ||
curr_angle | float | ||
curr_shape | |||
damping | float | ||
force | Vector2 | ||
is_dirty | bool | ||
is_merging | bool | ||
is_static | bool | ||
omega | float | ||
pointmass_list | hyades.physics.PointMass[] | ||
position | Vector2 | ||
prev_angle | float | ||
scale | Vector2 | ||
velocity | Vector2 |
Метод | Описание | |
---|---|---|
ApplyForce ( Vector2 &point, Vector2 &force ) : void | ||
ApplyInternalForces ( double elapsed ) : void | ||
Body ( |
||
Contains ( Vector2 &point ) : bool | ||
GetClosestPoint ( Vector2 point, Vector2 &closest, Vector2 &normal, int &pointA, int &pointB, float &edgeD ) : float | ||
GetClosestPointMass ( Vector2 point, float &dist ) : |
||
GetClosestPointOnEdge ( Vector2 point, int edgeNum, Vector2 &hitPt, Vector2 &normal, float &edgeD ) : float | ||
GetClosestPointOnEdgeSquared ( Vector2 point, int edgeNum, Vector2 &hitPt, Vector2 &normal, float &edgeD ) : float | ||
ToString ( ) : string | ||
ToStringSimple ( ) : string | ||
Update ( double elapsed ) : void | ||
UpdateBodyPositionVelocityForce ( double elapsed ) : void |
Метод | Описание | |
---|---|---|
GetBodyPositionVelocityForce ( Vector2 &position, Vector2 &velocity, Vector2 &force ) : void | ||
RotateShape ( double elapsed ) : void | ||
SetBodyPositionVelocityForce ( Vector2 position, Vector2 velocity, Vector2 force ) : void | ||
UpdataAABB ( double elapsed ) : void | ||
UpdatePointMasses ( double elapsed ) : void |
public ApplyForce ( Vector2 &point, Vector2 &force ) : void | ||
point | Vector2 | |
force | Vector2 | |
Результат | void |
public ApplyInternalForces ( double elapsed ) : void | ||
elapsed | double | |
Результат | void |
public Body ( |
||
shape | ||
mass | float | |
Результат | System |
public GetClosestPoint ( Vector2 point, Vector2 &closest, Vector2 &normal, int &pointA, int &pointB, float &edgeD ) : float | ||
point | Vector2 | |
closest | Vector2 | |
normal | Vector2 | |
pointA | int | |
pointB | int | |
edgeD | float | |
Результат | float |
public GetClosestPointMass ( Vector2 point, float &dist ) : |
||
point | Vector2 | |
dist | float | |
Результат |
public GetClosestPointOnEdge ( Vector2 point, int edgeNum, Vector2 &hitPt, Vector2 &normal, float &edgeD ) : float | ||
point | Vector2 | |
edgeNum | int | |
hitPt | Vector2 | |
normal | Vector2 | |
edgeD | float | |
Результат | float |
public GetClosestPointOnEdgeSquared ( Vector2 point, int edgeNum, Vector2 &hitPt, Vector2 &normal, float &edgeD ) : float | ||
point | Vector2 | |
edgeNum | int | |
hitPt | Vector2 | |
normal | Vector2 | |
edgeD | float | |
Результат | float |
public UpdateBodyPositionVelocityForce ( double elapsed ) : void | ||
elapsed | double | |
Результат | void |
public PointMass[],hyades.physics pointmass_list | ||
Результат | hyades.physics.PointMass[] |