Bug? "GetLinearVelocity" doesn't output YZ velocity

Post here anything related to RealFlow that doesn't specifically belong in any of the forums below
Post Reply
pixellusion1
Posts: 53
Joined: Thu Nov 24, 2011 10:29 pm
Location: cologne, germany
Contact:

Bug? "GetLinearVelocity" doesn't output YZ velocity

Post by pixellusion1 » Thu Jan 12, 2017 7:44 pm

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...

User avatar
Alex
Site Admin
Posts: 143
Joined: Mon Jun 14, 2010 9:35 am

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

Post by Alex » Fri Feb 24, 2017 3:50 pm

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.
Alex Ribao
RealFlow Team
Next Limit Technologies

pixellusion1
Posts: 53
Joined: Thu Nov 24, 2011 10:29 pm
Location: cologne, germany
Contact:

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

Post by pixellusion1 » Wed Mar 01, 2017 1:38 pm

Hey Alex, thanks for confirming ;)

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

User avatar
Alex
Site Admin
Posts: 143
Joined: Mon Jun 14, 2010 9:35 am

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

Post by Alex » Wed Mar 01, 2017 1:39 pm

That's a very good workaround actually.

Sorry for the inconvenience.
Alex Ribao
RealFlow Team
Next Limit Technologies

Post Reply