Page 1 of 1

Bug? "GetLinearVelocity" doesn't output YZ velocity

Posted: Thu Jan 12, 2017 7:44 pm
by pixellusion1
The "GetLinearVelocity" node outputs a vector (that should represent an objects velocity for XYZ), but only the X value is passed through. The values for Y and Z willl remain "0".

simple example file:
https://files.pixellusion.de/index.php/ ... j/download

The cross object moves along a curved path (keyframe anim) and the veloity is printed to the messages window.
No velocity for Y or Z is printed...

Re: Bug? "GetLinearVelocity" doesn't output YZ velocity

Posted: Fri Feb 24, 2017 3:50 pm
by Alex
Thanks for letting us know.

I've tested it and seems like it has been like this since ages (RealFlow 2012).
The problem seems to be related to the internal velocity value, because Cross01.getVelocity() returns the same (wrong) value.

Re: Bug? "GetLinearVelocity" doesn't output YZ velocity

Posted: Wed Mar 01, 2017 1:38 pm
by pixellusion1
Hey Alex, thanks for confirming ;)

For now i just took the average velocity of all vertices from the object :)

Re: Bug? "GetLinearVelocity" doesn't output YZ velocity

Posted: Wed Mar 01, 2017 1:39 pm
by Alex
That's a very good workaround actually.

Sorry for the inconvenience.