x


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?

more ▼

asked Mar 21 '11 at 07:15 PM

Storm Kiernan gravatar image

Storm Kiernan
177 19 25 32

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

Mar 24 '11 at 04:22 PM Rush Rage Games
(comments are locked)
10|3000 characters needed characters left

1 answer: sort voted first

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!

more ▼

answered Apr 17 '11 at 06:14 PM

starkos gravatar image

starkos
48 1 1 5

(comments are locked)
10|3000 characters needed characters left
Your answer
toggle preview:

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Topics:

x1866
x1787
x1041
x520
x12

asked: Mar 21 '11 at 07:15 PM

Seen: 2510 times

Last Updated: Mar 21 '11 at 07:15 PM