character move on stairs?

conquerors
Posts: 3
Joined: Sun May 20, 2007 1:26 pm
Location: China

character move on stairs?

Post by conquerors »

in Counter-Strike, character can climb stairs,How to achieve this effect?

need your help.

my english is poor.
kibibu
Posts: 1
Joined: Wed Jul 04, 2007 11:47 am

Post by kibibu »

You are probably looking for Inverse Kinematics, not physics simulation.
kotsoft
Posts: 3
Joined: Mon Apr 30, 2007 7:03 pm

Post by kotsoft »

usually you can just gradually increase the z value, or whatever you use for height.
Virion
Posts: 1
Joined: Wed Jul 25, 2007 9:52 am

Post by Virion »

Procedural animation?
User avatar
Erwin Coumans
Site Admin
Posts: 4221
Joined: Sun Jun 26, 2005 6:43 pm
Location: California, USA

Post by Erwin Coumans »

In many games, the character controller is moving a capsule, sphere, box or other convex shape. This collision shape embeds the animated skinned character.

Climbing on stairs using such simplified shape is done by scanning a collision-free path using shape-traces, going up, forward, down (to check stairs). You can learn more about this by checking an open source implementation in idSoftware Quake engine series.

Counter Strike like uses this approach.

Approaches like Natural Motion that include balancing, IK and powered ragdolls are becoming more popular in the future, but most current games use above simple approach.
It is on my (long) todo list for Bullet to provide such shape-trace based character controller.
wuallen
Posts: 5
Joined: Mon Jul 14, 2008 8:14 am

Re: character move on stairs?

Post by wuallen »

sorry for replying this post, it is a little old.

I want to say that it is time to implement the IK effect, I can't wait any more.
oBFusCATed
Posts: 3
Joined: Tue Sep 30, 2008 9:51 pm

Re:

Post by oBFusCATed »

Erwin Coumans wrote: Climbing on stairs using such simplified shape is done by scanning a collision-free path using shape-traces, going up, forward, down (to check stairs). You can learn more about this by checking an open source implementation in idSoftware Quake engine series.
I've looked in the quake 3 source, but couldn't find anything. Can you give me some guides, where to look in the source?

Best regards,
Teodor