pls can anyone help! I’m new to unity and I’m trying to make my character jump over a cube moving towards him but the rigidbody attached to the cube makes it impossible to jump over. Both the character and cube have rigid bodies attached to them. Also when the cube is in motion (moving towards the character) it allows the character pass through it instead of repeling the player back on collision. Pls any advice wud b really appreciated. Thanks in advance.
This is the script I used to move the cube towards him.
#pragma strict
var speed:float = 17.0f; // move speed
function Start () {
}
function Update () {
transform.position = Vector3.MoveTowards(transform.position, Vector3(-0.0001,3.67707,7.64789), speed*Time.deltaTime);
}