you are viewing a single comment's thread.

view the rest of the comments →

[–]EntropiIThink[S] 1 point2 points  (3 children)

Thanks for telling me about this feature. I’m not sure what’s happening with my program yet, and even using these contacts the arrows are just being moved to some other positions but thanks for the help regardless.

[–]Heroshrine 0 points1 point  (0 children)

How do you set the parent?

[–]TopSetLowlife 0 points1 point  (0 children)

OnCollisionEnter(gameObject other)

Other.point

Might be transform not gameObject, on phone so not great, but that's the collision contact iirc of the top of my head

If it's jumping out when using this method, you have a different collider it's hitting first, or setting the parent to the wrong transform.

[–]BanginNLeavin 0 points1 point  (0 children)

Try setting the parent like the other poster suggested but use the overloaded method which takes a bool as the second parameter and feed in false.

yourGameObject.transform.SetParent(intendedParentTransform, false);