This is hard, HARD I tell ya!! lol
Anyways, the problem is that I made a block, or cube, that moves up when my character lands on it, but my character goes right through it. Then I read on some posts that it is because character controllers usually ignore physics and that it is easily fixed with a OnControllerColliderHit function. Well I tried, and the character does go up, but to a certain extent and then falls through it. Here is the bit of code I am using:
MainController.js
function OnControllerColliderHit (hit : ControllerColliderHit)
{
if(hit.gameObject.tag == "MovingBlock")
{
transform.position.y += Time.deltaTime * 60;
}
}
and here is MovingBlockTrigger.js
var block : Transform;
function OnTriggerStay( hit : Collider)
{
transform.position.y += Time.deltaTime * 60;
}
Any help will be appreciated.
cheers =]