Property | Type | Description | |
---|---|---|---|
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 |
Method | Description | |
---|---|---|
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 |
Method | Description | |
---|---|---|
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 | |
return | void |
public ApplyInternalForces ( double elapsed ) : void | ||
elapsed | double | |
return | void |
public Body ( |
||
shape | ||
mass | float | |
return | 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 | |
return | float |
public GetClosestPointMass ( Vector2 point, float &dist ) : |
||
point | Vector2 | |
dist | float | |
return |
public GetClosestPointOnEdge ( Vector2 point, int edgeNum, Vector2 &hitPt, Vector2 &normal, float &edgeD ) : float | ||
point | Vector2 | |
edgeNum | int | |
hitPt | Vector2 | |
normal | Vector2 | |
edgeD | float | |
return | float |
public GetClosestPointOnEdgeSquared ( Vector2 point, int edgeNum, Vector2 &hitPt, Vector2 &normal, float &edgeD ) : float | ||
point | Vector2 | |
edgeNum | int | |
hitPt | Vector2 | |
normal | Vector2 | |
edgeD | float | |
return | float |
public UpdateBodyPositionVelocityForce ( double elapsed ) : void | ||
elapsed | double | |
return | void |
public PointMass[],hyades.physics pointmass_list | ||
return | hyades.physics.PointMass[] |