rotating gravity

   2006   2   2
User Avatar
Member
280 posts
Joined: Dec. 2015
Offline
Hi,
I actually run into an interesting problem…. I need to rotate the gravity Force.
The gravity parameter only hasa vector for direction, which is not very intuitive to making it rotate.
So basically I can calculate a vector by rotating a point around the origin and add an attribute @G to the geo via a Sop solver. But I have no idea how to tell the Gravity to use this attribute? if I simply put @G.x, @G.y, @G.z does not seem to work.

Maybe there is a less convoluted way to achieve this?
Nico.

Attached is a file with what I tried so far…. I really don't get why the point force does not seem to be getting the G value.

Attachments:
rotatingG.hip (319.4 KB)

https://www.imdb.com/name/nm8408875/ [www.imdb.com]
User Avatar
Member
402 posts
Joined: June 2014
Offline
Hi Nicolas,

you could use a point() expression in the the gravity DOP to grab a geometry attribute… or if you wanted to set up a control object you could use a vtorigin() expression to grab the objects world space and plug that into the gravity DOP. In the attached file I've used chops instead… but it does the same thing.

Hope it helps,

Henry

Attachments:
gravity_control.hip (229.4 KB)

Henry Dean
User Avatar
Member
280 posts
Joined: Dec. 2015
Offline
friedasparagus
Hi Nicolas,

you could use a point() expression in the the gravity DOP to grab a geometry attribute… or if you wanted to set up a control object you could use a vtorigin() expression to grab the objects world space and plug that into the gravity DOP. In the attached file I've used chops instead… but it does the same thing.

Hope it helps,

Henry
Thank you very much!
Here I was thinking I needed to bring any geo attribute into a sop solver before being able to use it in DOP. And a simple point function make it work! hahaha.
Thanks.
https://www.imdb.com/name/nm8408875/ [www.imdb.com]
  • Quick Links