프로퍼티 | 타입 | 설명 | |
---|---|---|---|
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 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[] |