onCollisionenter
private void OnCollisionEnter()
{
}
Obnoxious Ocelot
private void OnCollisionEnter()
{
}
void OnCollisionEnter(Collision collision)//Make sure to put this out of Voids
{
if (other.gameObject.tag == "Object")
{
Debug.Log ("Collided");
}
}
OnCollisionEnter(Collision collision)
{
ContactPoint contact = collision.contacts[0];
Quaternion rotation = Quaternion.FromToRotation(Vector3.up, contact.normal);
Vector3 position = contact.point;
Vector3 relativeVelocity = collision.relativeVelocity;
}