Filters
(→object filter) |
(→difference filter) |
||
Line 37: | Line 37: | ||
= difference filter = | = difference filter = | ||
+ | Returns true if the two colliding rigid bodies are from different input meshes. | ||
+ | |||
[[File:Difference filter.png]] | [[File:Difference filter.png]] | ||
Revision as of 04:00, 17 July 2012
Filters are logical tests applied to one or both of the rigid bodies in a colliding pair, used to describe conditions that must be satisied in order for a collision event to be triggered. All filters must evaluate to true for the event to be triggered and the script to execute.
Contents |
trigger filter
Allow a rigid body to participate in this event either repeatedly or only once.
type | enum |
---|---|
default | repeated |
indices | once : repeated |
Limit the number of times this event may be triggered for each object. Requires the script to set "trigger:"+$thisPlug. |
chance filter
DG filter
object filter
Tests if a rigid body is derived from a particular input mesh.
object_set filter
difference filter
Returns true if the two colliding rigid bodies are from different input meshes.
time filter
contact filter
data filter
Compares the value of custom data attached to a body, with some constant value. The test may be applied to the first or second body, either (logical OR), or both (logical AND). If the body doesn't have the data attached, the filter evaluates to false.