Platform Compatibility
PC | Mac OSX | Oculus Quest |
---|---|---|
X | X | X |
Add or resize a generic box collider with optional X,Y,Z and optional size if we have no collider, default size is 1f
Parameters:
- moveCenter Optional
- A boolean value
- x Optional
- A float value
- y Optional
- A float value
- z Optional
- A float value
- setSize Optional
- A boolean value
- width Optional
- A float value
- height Optional
- A float value
- depth Optional
- A float value
Example:
1 | obj.boxCollider(moveCenter, x, y, z, setSize, width, height, depth) |