diff options
Diffstat (limited to 'doc/lua/physics.md')
-rw-r--r-- | doc/lua/physics.md | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/doc/lua/physics.md b/doc/lua/physics.md new file mode 100644 index 0000000..b5a68d8 --- /dev/null +++ b/doc/lua/physics.md @@ -0,0 +1,19 @@ +The physics table is available to objects and used to control any collisions or force regions configured on those objects. + +--- + +#### `void` physics.setForceEnabled(`String` force, `bool` enabled) + +Enables or disables the specified physics force region. + +--- + +#### `void` physics.setCollisionPosition(`String` collision, `Vec2F` position) + +Moves the specified physics collision region to the specified position. + +--- + +#### `void` physics.setCollisionEnabled(`String` collision, `bool` enabled) + +Enables or disables the specified physics collision region. |