Hello Guest

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - pablopun ch

Pages: [1]
1
Support / Re: Collision Issues
« on: December 16, 2013, 02:36:59 pm »
No it is never called. I have now tried checking the Is Kinematic on my rigidbody for the player. Still no luck

2
Support / Collision Issues
« on: December 16, 2013, 08:39:35 am »
So I am having this crazy issue. I am collecting coins in a platformer. The coins have a box collider that has isTrigger enabled/checked. This coin is an Animated Sprite that has a tag of coin. My player has a child gameObject that has a rididbody and capsule collider. In my player script I have the following:

Code: [Select]
void OnTriggerEnter(Collider other)
{
if (other.CompareTag("coin")){
Debug.Log ("Hit");
}
}

What could I be doing wrong. This seems pretty straight forward. I just want to detect the collision in the console and move from there. I have also tried the following:

Code: [Select]
void OnTriggerEnter(Collider other)
{
if (other.gameObject.tag == "coin"){
Debug.Log ("Hit");
}
}

Pages: [1]