DOPs > using custom impact data
5070 6 1- circusmonkey
- Member
- 2624 posts
- Joined: Aug. 2006
- Offline
Hi,
how can I create custom impact data from an object and then use that recorded custom impact to drive the vel on a set of separate objects. ie
Sphere hits object > custom impact data gets recorded > state node uses an if statement then to add more vel to another set of objects.
scene attached
Rob
how can I create custom impact data from an object and then use that recorded custom impact to drive the vel on a set of separate objects. ie
Sphere hits object > custom impact data gets recorded > state node uses an if statement then to add more vel to another set of objects.
scene attached
Rob
Gone fishing
- asnowcappedromance
- Member
- 512 posts
- Joined: July 2009
- Offline
- circusmonkey
- Member
- 2624 posts
- Joined: Aug. 2006
- Offline
Hi,
I fully understand the scene but the box is only active if there is an impact, so as your sphere rolls along the ground there is a continuous impact recorded and therefore the box can fall. What I am after is a way of recording the first impact then the other objects get triggered to move. without having to rely on a continuous impact happening > much like a trigger to execute something after the first impact.
Hope that makes sense , see the attached scene file using your method and showing the problem. The cube only moves when the impact is recorded.
Rob
I fully understand the scene but the box is only active if there is an impact, so as your sphere rolls along the ground there is a continuous impact recorded and therefore the box can fall. What I am after is a way of recording the first impact then the other objects get triggered to move. without having to rely on a continuous impact happening > much like a trigger to execute something after the first impact.
Hope that makes sense , see the attached scene file using your method and showing the problem. The cube only moves when the impact is recorded.
Rob
Gone fishing
- asnowcappedromance
- Member
- 512 posts
- Joined: July 2009
- Offline
hey there,
so you have to use the SOP Solver to get this to work,
in this case I'm initializing an attribute “hasImpact” on object creation in SOPs and change this then in the SOP Solver as soon as there is impact data, that way you keep this value (it's boolean).
2 things that I didn't quite get is how to use the point expression correctly
in DOPs to get access to an objects geometry entry and
why I have to use 2 different RBD solvers.
Well it's late
cheers,
Manuel
so you have to use the SOP Solver to get this to work,
in this case I'm initializing an attribute “hasImpact” on object creation in SOPs and change this then in the SOP Solver as soon as there is impact data, that way you keep this value (it's boolean).
2 things that I didn't quite get is how to use the point expression correctly
in DOPs to get access to an objects geometry entry and
why I have to use 2 different RBD solvers.
Well it's late
cheers,
Manuel
- csp
- Member
- 230 posts
- Joined: Oct. 2009
- Offline
- asnowcappedromance
- Member
- 512 posts
- Joined: July 2009
- Offline
- csp
- Member
- 230 posts
- Joined: Oct. 2009
- Offline
asnowcappedromance
yeah, that's no big deal at all
Hou12 has to useful new SOPs that make your life easier, the Solver SOP and the DopImpactRecords SOP, check out the attached file!
cheers!
I wish I could work with H12 but I have to use uni's version H11, but I found some way to fix this. Can you check my last post and the attached hip here:
http://www.sidefx.com/index.php?option=com_forum&Itemid=172&page=viewtopic&t=25255 [sidefx.com]
thanks in advance!
-
- Quick Links