Message 1 of 3
distance between node and frozen transforms
Not applicable
01-06-2019
09:24 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi there.
I'd like to calculate the distance between to objects in world space.
I'm using a distance between node that I created as a shader utility. I plug in the world matrix for the two objects and it spits out a distance. Great! However if one or both of those objects have frozen transforms then the distance value is incorrect.
I could easily use the measure tool and parent/constrain a locator under each object and get the distance that way, but that creates a whole bunch of nodes that I don't need/want and seeing as my rig is going to need a lot of these distance measurements I'd prefer a way that doesn't clutter the scene too much.
So, how do I get the world position of an object that has frozen transforms?
Many thanks.