- Home /
This question was
closed Aug 05, 2019 at 02:45 PM by
stjingtjang for the following reason:
The question is answered, right answer was accepted
Question by
stjingtjang · Aug 05, 2019 at 02:24 PM ·
collisioncollision.contacts
Since unity is not recommending using collision.contact as it produces memory garbage how should I then get the point of collision?
when I Debug.Log(collision.Getcontact(0))
I get Debug.Log(Object)
. After reading the unity document about collision.Getcontact(s) I still don't know how to get a Vector3 from it, so I can transform my blood particles to that point.
Comment
Best Answer
Answer by xxmariofer · Aug 05, 2019 at 02:38 PM
Debug.Log(collision.GetContact(0).point);
Oh wow thx, sry for this question I tried collision.Getcontact[0].point stupid. How can I dele this question?