2 questions (physics and colliders)

Hello, these are my questons

1) i'm having a problem with the ontrigger events. i have two objects with colliders both of them, one has a rigidbody (iskinematic=true) attached to it and the other is a trigger. so the problem is the ontrigger event is only getting called if both objects are moving (transform.position). if one of the body is standing still, ontrigger event does not get called. i found a temporal solution by transforming the object by very small amounts (almost zero), but i dont think this is a very smart solution.

2) I have one gameobjectobject (rigidbody with iskinematic) and it has a children gameobject (rigidbody with iskinematic) I attached a script that detaches the children, deactivates iskinematic and applies a force. but the children just stands still, it doesn't move. what could be the problem?

Thabk you for your help.

1 Answer

1

With regards to 1) Need to know a little bit more, which object do you want to be moving? Is the rigidbody stationary? It may be sleeping. Add a rigid body to the other object and it will wake it up? What type of colliders are on them?

With regards to 2) If you're detaching the children you will need to AddForce and set isKinimeatic to false for each one.