20-06-2017, 03:27 PM
(20-06-2017, 02:02 PM)davidrousal Wrote: Ah perfect, thx for your quick answer. The part with the collision is fine. For the water you misunderstood my bad english question maybe
I want to add an area of water (my water, not an obi water) and this should affect your simulation particles like other gravity, damping etc...
For example: I want a swimming obi rope on a water box (no obi particle fluid)
thx a lot
br
David
Ps: if you have another idea how I could simulate non-obi water to affect your particle simulation I would be happy to hear it, hehe
Ah, ok!
Obi supports triggers, so you can create a trigger box collider and the solver OnCollision event will return all contacts with the box each frame (i.e. all particles inside the box). Then you can just modify their velocities as you see fit. See:
http://obi.virtualmethodstudio.com/tutor...sions.html
Hint: for underwater obi rope/cloth, setting the solver's "velocity damping" to 0.7-0.9 can be very effective. Buoyancy however, you must implement that yourself as described above.