Question by
daoquangvinh95 · Mar 17 at 08:25 AM ·
collision
Collision not detected??
private void OnCollisionEnter(Collision collision)
if( collision.gameObject.name == "Player")
collision.gameObject.transform.SetParent(transform ) }
I have a moving platform, i want when my player touches the moving platform my player will move too, using SetParent. Everything works fine when I use Cube or Capsual as player, but when I use my 3Dmodel and use CharacterController, collision is not detected. I attached the Rigidbody to both, but the collision is still not detected.How can i fix that? Thank you!
Comment