osb/doc/lua/physics.md
2023-06-20 14:33:09 +10:00

20 lines
555 B
Markdown

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.