Jump to content

Smooth stairs climbing


psychoanima
 Share

Recommended Posts

With FPSPlayer there is that unnatural camera movement if the player is using stairs. Sort of jump cut movement, probably caused by collision or something. Is there any way to make smooth stairs climbing? Also, is it possible to swing FPS camera during walk, jump and idle, to mimic realistic movement?

Link to comment
Share on other sites

I 3rd the invisible ramp idea. It's also good for navmesh (AI movement). Stairs, bridges, narrow walk areas, bumps. Invisible ramps are your friend to make everything smooth, especial AI who get stuck on stuff easily without invisible ramps.

 

You can use something like this for jump, and I'm sure you can lower the values to make a 'sway motion' while walking.

 

-- Goes at top
Script.jumpoffset=Vec3(0)

-- Put in your jumpscript after keyhit space o
self.jumpoffset = Vec3(math.random(-1,1),math.random(-1,1),0):Normalize()*30

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...