Message 1 of 2
Local offset of spring controller
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I'm trying to get the local offset values of the cross helper you see in the attached image.
The helper has a spring controller and is linked to the box.
The box and the sphere are linked to the object called bound, which is animated along the x axis, so that you can see the spring animation in action.
$Spring.controller.position.x gives me the world coordinates, which I don't need.
Instead I would like to get that 22.016 number, which displays correctly in the parent space, as you see in the second image.
As an extra, once I get that value (how much the spring offsets from the box) I need to plug it in a float script to drive the box y rotation, via a float script.
Joey