Physics
Physics bodies are crates and balls that fall, stack, roll and can be thrown. Turn them on with Physics Bodies on the New Project window's Combat & Movement tab, or with the line physics on in game.vdc; no Project Settings page has the switch yet. They suit the side view best.
- Bodies fall under gravity, land on the map floor and on solid props, stack on each other and bounce a little.
- The player shoves what she walks into.
- The use key (E) near a body picks it up, and it rides above her hands. Press it again to throw it the way she faces.
Bodies on a map
A map's bodies are body rows in its document, assets/maps/<map>.vfa, written by hand:
comp body body1 -1 -
field shape box
field x 400
field y 300
field hw 24
field hh 24
field color B08040
comp body body2 -1 -
field shape ball
field x 520
field y 300
field radius 20From a script: physbox <x> <y> [hw hh] and physball <x> <y> [r].
What it is not
Physics bodies are their own objects. Placed props do not simulate: a prop has no mass or gravity, and moves only by its Mobility settings, its Tweens or a script (Placing and Editing). Bodies do not rotate, and there are no joints yet.