- Home /
Question by
RedOneDigitals · Jul 15, 2014 at 07:09 PM ·
charactercharactercontrollerjumpfast
Character jump too fast
Hi! i have my character jumps too fast, it goes up too fast. here is c# code of the jump:
if(!controller.isGrounded)
moveDirection.y = -(gravity * Time.deltaTime);
if(Input.GetButton ("Jump") && controller.isGrounded) {
moveDirection.y = jumpHeight;
}
controller.Move(moveDirection);
can you guys please provide an edit in the code to make the jump looks slower and normal?
Comment
Answer by Kiwasi · Jul 15, 2014 at 07:10 PM
For a slower jump simply scale move direction.
moveDirection = moveDirection *0.8f
scaling does not change anything! it still looks like the character get teleported from ground to jump height.
Your answer
Follow this Question
Related Questions
Let Character Controller jump. 0 Answers
Let Character Controller jump. 1 Answer
I cant make my Character jump. 0 Answers
How to fix a infinity jump? 1 Answer
Custom Character Script Allowing Movement in the Air? 0 Answers