osb/doc/lua/physics.md

20 lines
555 B
Markdown
Raw Permalink Normal View History

2023-06-20 04:33:09 +00:00
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.