convert positionInWorld to positionInReference

Hello, I want to use a vcMotionTarget and assign a .Target to it. The problem is that my positions are from the type PositionInWorld. .Target only takes coordinates relative to the baseframe. Positions that are going to be assigned to the target are originallly taken from an object with type vcPositionFrame. these has an attribute .PositionInReference also. However I need the positionInWorld, add a certain number to it and assign it as target. Anyone an idea how to convert a positionInWorld to a position relative to the baseframe?

Hy,

if the baseframe is in a vcNode you maybe can use this?!

Regards
Feature

1 Like