Collision Parameters
Behaviors: Collisions
Collisions can be defined with the parameter collision of behaviors.
By default, if the parameter collision is not defined, the parameter has the value 0.
A collision means that a computation of collision is done so that objects cannot merge into each other (hard objects).
A non collision means that there is no computation of collision and thus objects can be placed into each other. (soft objects). For instance, this mode is often used to do decoration (illustrated below).
The concept of collision is based on computation of the bounding box of objects and not the 3D mesh.
Example of a non collision:
In this example, the book is into the shelve bounding box. In order to let it go into it, its parameter collision must be equal to 0.
| Collision? | Collision? | Collided object | Collided object |
|---|---|---|---|
| - | - | behavior.collide = 0 | behavior.collide = 1 |
| Dragged object | behavior.collide = 0 | Non collision | Non collision |
| Dragged object | behavior.collide = 1 | Non collision | Collision |
Note:
This behavior is described only for the translate manipulator. The rotate manipulator does not take in account the collisions, and either the measure auto command.