My Player keeps launching into the air

Hi. I am new to unity3d, but am catching on relatively quickly. not too good at code though, mainly artistic aspects to game creation. Anyway - i am using a capsule as a First Person character… it has a capsule colluder as well. I am using the move script i found somewhere on unity… my problem is

every now and again when I am walking, i will get launched high into the air, often tree height. Its not my jump, because when I press space my jump is only a meter or so.

please help???

You write that you have a capsule collider. The character controller script is meant to be used on something with a characterController component on it, but not a collider or rigidbody (if the script says “error – can’t find char controller” when you put it on a cube, it’s a charController script.)

The green capsule you get when you add a charController component looks like a capsule collider, but it works differently and they aren’t interchangable.

Things like falling rocks do need a rigidbody plus collider to move around. charControllers replace them both to give more “player-like” movement.

Can you give us the script cause its just like asking:
Heloo!
i have an animal and i dont know with wht to feed him…
I will gladly help you if you will show me the script
Ty

hi… sorry :slight_smile: I’m using the default character controller…the character motor, and platform input controller on my capsule. turns out i am not using the script i found online after all, they are all scripts that come with unity. On my cam I am using mouse look, this combination of scripts is the only one that got me the desired outcome… except for the issue in question (which is occurring less frequently now) …

so all those scripts are inside unity.

Hi,
I actually want this launching in the air to happen to my player, but not sure how to go about it!

In the game Halo, there are these kind of catapult/booster/launch pads that when the player runs over them, will launch them into diagonally in to the air and with forward speed across the game arena. (Sorry i’m not sure of the correct name for them)

I was thinking of placing a game object with a constant force but not sure this will work. The other option i thought of was to trigger the force in the character controller script on collision with the object, but didn’t want to mess about in there really!

I haven’t tried it yet because im working on a different area of my project it this moment in time but just starting to collate ideas for this next segment, any advice will be most appreciated.

Thanks in advance