Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Solver_OnCollision: Distinguish between Obi Types at collision
#3
(06-11-2019, 06:48 PM)josemendez Wrote: Hi,

You can easily retrieve which actor a particle belongs to. See "Retrieving the actor involved in a contact" in:
http://obi.virtualmethodstudio.com/tutor...sions.html

once you have the ObiActor (which is the base class for ObiCloth,ObiEmitter,ObiRope, etc) you can just do:
Code:
if (actor is ObiCloth)
//stuff A
else if (actor is ObiRope)
//stuff B

Again I just didn't observe the tutorials correctly. Thanks!
Reply


Messages In This Thread
RE: Solver_OnCollision: Distinguish between Obi Types at collision - by HenryChinaski - 06-11-2019, 07:45 PM