[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
Re: [pygame] PyODE
- To: pygame-users@xxxxxxxx
- Subject: Re: [pygame] PyODE
- From: "Patrick Mullen" <saluk64007@xxxxxxxxx>
- Date: Wed, 4 Apr 2007 08:47:21 -0700
- Delivered-to: archiver@seul.org
- Delivered-to: pygame-users-outgoing@seul.org
- Delivered-to: pygame-users@seul.org
- Delivery-date: Wed, 04 Apr 2007 11:47:29 -0400
- Dkim-signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; b=Er+n0tB03kdaqUtCkhrG2S/XoLuZ0wiqkPoUJ64/afcxGwFllf2axIOYpuNYECTsYe+5Bxz2dHhjv5SMPk+6oUnjLz/NlhQzuu4dKl03h1+UlO+tQ0I9gzJpc7Vsy8EF7kRwUILwetmfqekyWtk+D70e5AxKVwga5qK4DkBoIWQ=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; b=sAxqLnE49NVorFNEx+RYAFIk802Pdsjpmc1KFt4cKspQvRE3hgtmF9Jrs3K6MBbS5/0zB5wzCscfCjjkCxi/WCaUITQvn5SckKDk7UOB+hBa8RbTiAxuHHSOOvk0cfN8dVJvZUsLglTUMEH2AB1zLy0yFqmsRtmpSL2BVO+XXvM=
- In-reply-to: <460DC04C.301@cs.rpi.edu>
- References: <460AF5E9.1090106@xepher.net> <460B0CBC.2080506@canterbury.ac.nz> <460C8DDC.1080202@xepher.net> <460CA466.5090005@canterbury.ac.nz> <460DA92B.9080803@xepher.net> <460DC04C.301@cs.rpi.edu>
- Reply-to: pygame-users@xxxxxxxx
- Sender: owner-pygame-users@xxxxxxxx
You can check what the player is colliding with without bouncing them away with it, which would suit the ladder information, and you can shoot a ray down to determine the distance to the floor. In my mmorpg I use ode and only detect the floor through rays to determine where you can walk. (Real physics are a lot harder to network).
I use the distance of the collision at the next point the player is walking to see if the height difference is too great, and if not I set the player to be at that height.