mic Posted January 20, 2009 Share Posted January 20, 2009 hello! tell me please, how to activate some force only after collision? i want to apply gravity to the pieces of rbd fractured object only when the collision with it happened. my solution is incorrect: Activation = if(dopfield("/obj/dynamics", "rbdobject1", "Impacts", "Impacts", 0, time)>0, 1, 0) how should i do this simple action? thank you! Quote Link to comment Share on other sites More sharing options...
Jason Posted January 20, 2009 Share Posted January 20, 2009 hello! tell me please, how to activate some force only after collision?i want to apply gravity to the pieces of rbd fractured object only when the collision with it happened. my solution is incorrect: Activation = if(dopfield("/obj/dynamics", "rbdobject1", "Impacts", "Impacts", 0, time)>0, 1, 0) how should i do this simple action? thank you! I think you're looking for the dopnumrecords() expression, perhaps? Quote Link to comment Share on other sites More sharing options...
mic Posted January 20, 2009 Author Share Posted January 20, 2009 I think you're looking for the dopnumrecords() expression, perhaps? yes, Jason, you are right, but for all how get the same problem i want to explain wider: dopnumrecords("/obj/dopnet1", "objectname", "Impacts", "Impacts") - this will give us a signal that the colission happens. but the impact data only exists on the frames where impact occurs/ If we want to know if an impact has ever occured we should use Modify Data DOP activation = dopnumrecords... Value name = hasBeenHit Value Type = Boolean Value Float = 1 and then, using dopfield expression manipulate this new data) thanks to 'Houdini on the Spot' book, i read this 'trick' from it! =) Quote Link to comment Share on other sites More sharing options...
kleer001 Posted January 20, 2009 Share Posted January 20, 2009 or you could spawn new particles with the same attributes as the old excecpt they're gettin' the new force. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.