c# - ControllerColliderHit makes position change in unity 3d -
i attached script character controller.
when character controller hit on collider, transform positon of character controller changes.
void oncontrollercolliderhit(controllercolliderhit hit) { if(hit.collider.gameobject.name =="point"){ print("hit point"); } else { startcoroutine( "gameover" ); } }
why happen so. solution escape issue?
Comments
Post a Comment