Studio_Physics_Variables - hpgDesigns/hpgdesigns-dev.io GitHub Wiki

This article is an overview of physics variables in the GameMaker: Studio compatible physics extension.

These variables work like regular speed and direction and you can set them through code, they exist in all physics objects:

  • phy_active
  • phy_angular_velocity
  • phy_linear_velocity_x
  • phy_linear_velocity_y
  • phy_speed_x
  • phy_speed_y
  • phy_position_x
  • phy_position_y
  • phy_rotation
  • phy_fixed_rotation
  • phy_bullet

Read Only Variables

Some variables are changed internally by the engine but not able to be change directly by you, the end programmer:

  • phy_com_x
  • phy_com_y
  • phy_dynamic
  • phy_kinematic
  • phy_inertia
  • phy_mass
  • phy_sleeping

Collision Only Variables

Temporary variables in physics objects that can only be used in the collision event. Like the ones above and read-only:

  • phy_collision_points
  • phy_collision_x
  • phy_collision_y
  • phy_col_normal_x
  • phy_col_normal_y