c# - ControllerColliderHit makes position change in unity 3d -


enter image description here

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

Popular posts from this blog

monitor web browser programmatically in Android? -

Shrink a YouTube video to responsive width -

wpf - PdfWriter.GetInstance throws System.NullReferenceException -