physx results

 

 

This node provides an interface to PhysX collision engine and allows user to access various information about the event. As an example, one can detect collision between two particle shapes and generate radial voronoi fractures at the contact position.

 

 

[Inputs]

 

 

Enabled - Enable or disable node evaluation.

 

Solver - Select the PhysX solver from which to retrieve joints.

 

Event Type - Actor collision event type.

  • On Touch - Event when two actors have collided.
  • Lost Touch - Event when two actors are separated after been in collision contact.
  • During Contact - Event after the contact and when actors are still in contact.
  • All Events - All events combined.

 

Sim Group Pair A - First simulation group.

 

Sim Group Pair B - Second simulation group.

 

 

[Outputs]

 

Pair Found - Outputs true if any pair has been found. Make sure to connect this pin to the Enable pin of the node that uses Pair A and/or Pair B pins. In the example below, Spawn Gen node must spawn new particles only if collision pair was found.

 

Always connect Pair Found and Enabled pins

 

Pair A - Particle from Sim Group Pair A that is in the event. You can connect this pin to Get Particle Attrib node to retrieve particle properties. Beware that Static Collision node is not particle and in that particular case user must not use this pin if Sim Group Pair A is a simulation group of a Static Collision node.

 

Pair B - Particle from Sim Group Pair B that is in the event. You can connect this pin to Get Particle Attrib note to retrieve particle properties. . Beware that Static Collision node is not particle and in that particular case user must not use this pin if Sim Group Pair B is a simulation group of a Static Collision node.

 

Pairs Total - Total number of simulation pairs in the event.

 

 

Position - Collision contact position.

 

Normal - Collision contact normal.

 

Force - Collision force.

 

Impulse - Collision impulse.

 

Count - Number of contact points.