I have a rountine that goes as follows:
If entitycolliding(player, ground) = 0 then
player_gforce# = player_gforce# - game_gforce#
moveentity player, 0, player_gforce#, 0
else
player_gforce# = 0
endif
I notice that if I don't apply enough force then the character will go smooth, but it will float when going downhill, and gradually touches the ground. If I put too much the mesh starts shaking up and down.
I have a mesh with a pivot, and I apply the radius, type, and the movement to this pivot.
Suggestions?
If entitycolliding(player, ground) = 0 then
player_gforce# = player_gforce# - game_gforce#
moveentity player, 0, player_gforce#, 0
else
player_gforce# = 0
endif
I notice that if I don't apply enough force then the character will go smooth, but it will float when going downhill, and gradually touches the ground. If I put too much the mesh starts shaking up and down.
I have a mesh with a pivot, and I apply the radius, type, and the movement to this pivot.
Suggestions?