Cinema 4D Prime XPresso XPresso Nodes General Collision Operator
Function available in CINEMA 4D Prime, Visualize, Broadcast, Studio & BodyPaint 3D
Collision Operator

Basic Node Parameter

Parameter

Object 1
Object 2

see also Node Properties / Collision Type: Object.

Tolerance [0..+∞]

see also Node Properties / Collision Type: Tolerance.

Collision

Outputs a value of the type Boole which indicates whether the objects are currently colliding.

Distance [-∞..+∞]

Outputs the smallest distance between the objects (works in the Sphere and Distance modes only).

Polygon Index 1 [-2147483648..2147483647]

If a collision has been detected, this port outputs the index number of the polygon in Object 1 that collided first (provided Collision Type is set to Object or Distance).

Polygon Index 2 [-2147483648..2147483647]

If a collision has been detected, this port outputs the index number of the polygon in Object 2 that collided first (provided Collision Type is set to Object or Distance).

Point 1 [XYZ ]

This port only works when Collision Type is set to Distant and will return the position vector of the point of the nearest object (Input Port: Object 1). The objects should not collide with each other!

Point 2 [XYZ ]

This port only works when Collision Type is set to Distant and will return the position vector of the point of the second nearest object (Input Port: Object 2). The objects should not collide with each other!