- Home /
jet pack physics with character controller
I want to use the character controller to handle all of my movement, jumping, etc. Firstly, is this recommended?
Second, I am wanting to apply a velocity to my character controller but the velocity field is read-only and cannot be changed externally. Normally I would use rigidbody...but I figured there should be some way to access the physics aspects of the character controller.
Any ideas?
Did you figure it out? If so can you share your script? If not there are these threads: http://forum.unity3d.com/threads/60985-Jetpack http://forum.unity3d.com/threads/60516-jetpack-style-vertical-force
Answer by starkos · Apr 17, 2011 at 06:14 PM
Yes, if you're doing typical character running around type stuff, use the Character Controller. Also take a look at the Character Motor script, in the standard assets, which works in conjunction with the Character Controller to handle most common situations. You just have to tell it what the inputs are and it will take care of the rest.
If you want to apply velocities and forces to a Character Controller, just add a Rigidbody component to the object.
Hope that helps!
adding Rigidbody to standard first person controller makes it shoot in to the air