How do I make the FPS player bounce as I control it moving forward and back ?
1 Like
The answer depends on whether you are using a rigidbody
or character controller
component.
For rigidbody:
- Instantiate a
plane
and aplayer object
- Apply a
physics material
to theplane
and increase it’sbounce value
- Add a
rigidbody
and acollider
to yourplayer object
. - Let it fall and watch it bounce.
Now if you want it to automatically jump - in order to bounce - just use an impulsive force
to make it jump.
For character controller:
If you are using a character controller
, you should instead apply gravity manually and modify this to make it bounce, as it does not work with a rigidbody
.