Studio › Manual › More tools

Object physics

An object's Physics pane (⌥⌘3) holds GameMaker's physics properties:

  • Uses Physics: instances are bodies in the room's physics world (the room needs physics on) instead of moving by speed and direction.
  • Sensor (collisions are reported, nothing bounces), Start Awake, Kinematic (moved by code; it pushes other bodies).
  • Density (0 makes a static body), Restitution (bounciness), Collision Group, Linear Damping, Angular Damping and Friction.
  • Collision Shape: Circle, Box or Polygon, drawn over the object's sprite. Drag a circle's centre to move it and its edge point to size it; drag a box's corners; click to add polygon points (at most 8), drag them, and right-click or ⌫ to delete one. The polygon must be convex (the outline turns red when it isn't). Reset to Sprite fits the shape to the sprite again.

The inspector's Physics section has the Uses Physics switch and opens the pane. Every change is one step of Edit > Undo.

Keys are shown as on the Mac: ⌘ Command, ⌥ Option, ⌃ Control, ⇧ Shift. Studio for Windows shows its own keys beside each menu item.