Collision nodes and Actor.expose_joint

I have an actor with multiple collision nodes on each of its joints using Actor.expose_joint , is there a way to reparent these to a single collision node while maintaining the positions of the respective joints?

If I understand correctly what you’re asking, CompassEffects might do the job.

Simply put, a CompassEffect allows you to fix a NodePath relative to some other NodePath, whether in terms of its rotation (as in a compass), its scale, its shear–or its position.

So, you could thus, I would imagine, apply CompassEffects to your collision-nodes (via the “setEffect” method of NodePath) that fix them relative to your exposed joints.

See the API entry for CompassEffects here.

1 Like