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.
rotating gravity
2006 2 2- Nicolas Heluani
- Member
- 280 posts
- Joined: Dec. 2015
- Offline
- friedasparagus
- 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
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
Henry Dean
- Nicolas Heluani
- Member
- 280 posts
- Joined: Dec. 2015
- Offline
friedasparagusThank you very much!
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
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.
-
- Quick Links