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.
string[] : List of pathnames indexed by particle. If a
particle did not collide with a passive object
in the previous frame then the entry for that
particle will contain an empty string. |
Arguments
Variable Name |
Variable Type |
Description |
$particleShape | string | particle shape
|
// Return list of passive collision shapes for "particleShape1"
getCollisionObjects("particleShape1");