Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Custom colliders / Interaction with Obi Particles
#4
(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 Sonrisa

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.
Reply


Messages In This Thread
RE: Integration / Water Areas - by josemendez - 20-06-2017, 09:37 AM
RE: Custom colliders / Water areas - by josemendez - 20-06-2017, 03:27 PM