script (MEL) |
Only available in MEL |
getCollisionObjects |
In categories: Effects, Dynamics |
Go to: Synopsis. Return value. MEL examples.
getCollisionObjects (string $particleShape)
Returns a string array containing the pathname of the passive objects
that each particle in the given particle system collided with in
the previous frame. The particle system must have the
"collisionGeometryIndex" dynamic attribute added to it. If a
particle did not collide with any passive object in the previous
frame, then the array entry for that particle will contain an empty
string.
None
Arguments
Variable Name |
Variable Type |
Description |
$particleShape | string | particle shape
|
// Return list of passive collision shapes for "particleShape1"
getCollisionObjects("particleShape1");