Dynamic Object Position Parameter

   1590   1   1
User Avatar
Member
3 posts
Joined: April 2017
Offline
Good evening,

I have a question.
So, I have a dynamic object effected by certain forces,
and I like to copy the position from the dynamic object to another object.
But I can't find a parameter that could give me the position of the dynamic object, while running a simulation.
Is it possible to use the dynamic object position, as reference in real-time?


My goals is; every time a dynamic object comes close to a certain object, the object starts move, pushing away the dynamic object.

I'm very new in Houdini, so maybe I'm overlooking something important.
User Avatar
Member
7740 posts
Joined: Sept. 2011
Offline
Check out the dopfield expression, or the related python method.

http://www.sidefx.com/docs/houdini/expressions/dopfield [www.sidefx.com]

Position is not very well defined for a dop object. If you get the translate field, this is simply the translate for the pivot of the object, which isn't automatically at the center of mass or center of the object. You probably want do use impact data instead, which can give a precise location in space, and a record of which object hit what other object at what time.
  • Quick Links