Collision not detected at slow speed
Hi all,
I have created a really simple example game where the large cuboid is rotating and the player must avoid the collision. Once the collision occurred - you die.
I have made a really simple collision script:
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class PlayerCollision : MonoBehaviour
{
void OnCollisionEnter(Collision col)
{
if(col.gameObject.tag == "Enemy") {
Debug.Log(col.gameObject);
Destroy(this.gameObject);
}
}
}
I have tested the script. It appears that if the speed of the cuboid is slow (we assume that the player will be standing still). Then no collision is detected and nothing gets printed to the console. If the speed of the cuboid is increased - it starts detecting the collision.
So could anyone point me out what the problem may be? Again! The collision is only detected on faster speed
Thank you!
Your answer

Follow this Question
Related Questions
No overload for method. 1 Answer
Collision with a wall when I only want it with the player 1 Answer
GameObject not colliding properly with a collider! 3 Answers
How do I check if a GameObject is within or colliding with an arc? 1 Answer
How to Trigger/collision only once time per gameobject hit's? 0 Answers