Advertisement

'pushing' an object via CharacterController (Unity()

Started by November 20, 2020 05:12 PM
0 comments, last by SassyPantsy 4 years ago

hello friends,

tl;dr : similiar function to rigidbody.AddForce but using a CharacterController component

I'm trying to make a dodge-roll function in my game, and following a great tutorial (which I'll link) I've succeeded, with the exception of the fact that it uses rigidbody.AddForce to actuall make the player model move, and i've base my character movement on a CharacterController instead.

i know that the controllers have the .Move function, but it differs from AddForce by not "pushing" the object, but by “teleporting” it by the motion vector's amount.

i'm scratching my head as to how to make it work (move over time, rigidbody kinematic settnigs, etc) but i'm lacking enough knowledge about these components. :/

thanks for any help!

None

This topic is closed to new replies.

Advertisement