PhysX Glue Test

Bind Center Aligned Only - When on, binding occurs only between particles that are aligned to each other. For each pair of particles (say, Particle A and Particle B), the software determines alignment by drawing an imaginary line from Particle A's pivot to the closest point on an extrapolated extension of Particle B's local axis that comes nearest to Particle A's pivot, and then reverses the process using Particle B's pivot and Particle A's local axes. If the length of neither imaginary line in world units does not exceed the Align Margin value, PhysX Glue considers the particles to be aligned, and binds only those particles.

The following illustration shows an example of how Bind Center Aligned Only works. It depicts two brick-type particles: 1 and 2. The red cross shows brick 1's local axes, extended to pass by brick 2's pivot, shown as a smaller blue cross. If the distance between brick 2's pivot and the closest point on the nearest extended axis of brick 1 is equal to or less than the Align Margin distance, then PhysX Glue considers their centers to be aligned for binding purposes.

  • Align Margin - Defines the closeness factor in world units, and measures the distance between one particle's local axis and the other particle's pivot position (as the distance between an infinite line and a point). The distance between the extended axes of two particles must not exceed this value for particles to be considered aligned.

 

Example:  PhysXGlue_BindCenterAlignedOnly.zip