Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- {
- // If we are facing into the surface jump up, otherwise
- // jump away from surface.
- F32 dot = mDot(pv,mJumpSurfaceNormal);
- if (dot <= 0){
- acc.y += impulse * zSpeedScale;
- //the "y" in acc controls the direction, in this case, forward. -Mack
- acc.z += 7 * zSpeedScale;
- //the "z" in acc causes the player to jump up, "7" is a set variable of "impulse" which controls the height -Mack.
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement