demo.Player

Undocumented in source.

Members

Aliases

M_PI_2
alias M_PI_2 = PI_2
Undocumented in source.

Manifest constants

FALL_VELOCITY
enum FALL_VELOCITY;
Undocumented in source.
GRAVITY
enum GRAVITY;
Undocumented in source.
JUMP_BOOST_HEIGHT
enum JUMP_BOOST_HEIGHT;
Undocumented in source.
JUMP_HEIGHT
enum JUMP_HEIGHT;
Undocumented in source.
PLAYER_AIR_ACCEL
enum PLAYER_AIR_ACCEL;
Undocumented in source.
PLAYER_AIR_ACCEL_TIME
enum PLAYER_AIR_ACCEL_TIME;
Undocumented in source.
PLAYER_GROUND_ACCEL
enum PLAYER_GROUND_ACCEL;
Undocumented in source.
PLAYER_GROUND_ACCEL_TIME
enum PLAYER_GROUND_ACCEL_TIME;
Undocumented in source.
PLAYER_VELOCITY
enum PLAYER_VELOCITY;
Undocumented in source.

Static functions

SelectPlayerGroundNormal
void SelectPlayerGroundNormal(cpBody* body_, cpArbiter* arb, cpVect* groundNormal)
Undocumented in source. Be warned that the author may not have intended to support it.
destroy
void destroy(cpSpace* space)
Undocumented in source. Be warned that the author may not have intended to support it.
init
cpSpace* init()
Undocumented in source. Be warned that the author may not have intended to support it.
playerUpdateVelocity
void playerUpdateVelocity(cpBody* body_, cpVect gravity, cpFloat damping, cpFloat dt)
Undocumented in source. Be warned that the author may not have intended to support it.
update
void update(cpSpace* space, double dt)
Undocumented in source. Be warned that the author may not have intended to support it.

Static variables

grounded
cpBool grounded;
Undocumented in source.
lastJumpState
cpBool lastJumpState;
Undocumented in source.
playerBody
cpBody* playerBody;
Undocumented in source.
playerShape
cpShape* playerShape;
Undocumented in source.
remainingBoost
cpFloat remainingBoost;
Undocumented in source.

Variables

Player
ChipmunkDemo Player;
Undocumented in source.

Meta