according to the Unity script reference, this code works perfect, but it says this whenever i try to test it:
Assets/My Assets/Scripts/Character/PlayerControllerScript.cs(46,33): error CS1061: Type UnityEngine.Collision' does not contain a definition for point’ and no extension method point' of type UnityEngine.Collision’ could be found (are you missing a using directive or an assembly reference?)
Code:
void OnCollisionStay(Collision c)
{
//isGrounded
Debug.DrawRay(c.point, c.normal, Color.red);
if(c.point < 0.5)
{
isGrounded = true;
isJumping = false;
}
else
{
isGrounded = false;
isJumping = true;
}
}