Hi I augmented the character controller with this(in another c# file) It adds vertical movement but when my player object hits a collider whilst moving in this way it just travels straight through. Can anyone tell me why this is please?
void playerHoverMovement(){
if(Input.GetAxis("upDown") >= 0){
this.transform.Translate(new Vector3(0,Input.GetAxis("upDown"),0)
* Time.deltaTime
* verticalMoveSpeed
* OceanBox.isBelowOceanFloor(oceanBox.playerTransform),
Space.World);
}
if(Input.GetAxis("downUp") >= 0 /*&& !isAtLevelBounds()*/){
this.transform.Translate(new Vector3(0,-Input.GetAxis("downUp"),0)
* Time.deltaTime
* verticalMoveSpeed
* OceanBox.isAboveOceanFloor(oceanBox.playerTransform),
Space.World);
}
}