-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Sun, 18 Dec 2005, Jason Moyers wrote:

Hello all,
I have spent the last week modeling a motorcycle in blender (
http://interreality.org/~masonjoyers/crotchrocket/index.html ) and now that
I have this spiffy model, I want to drive it around. To accomplish this I
think I will add a vehicle class in A3DL. The question is what form of
physics is currently working with VOS? I know Peter was playing around with
ODE a few months ago, but I don't think that turned out so well. I believe
currently physics is "emulated" via the client. I would like to have basic
physics for the vehicle class, the drive torque is applied to the proper
wheels, center of gravity is applied, etc.. So should I attempt to play with
ODE? or should I just emulate my own physics code in the vehicle class?

Nice bike :-)

Currently, there is some support for ODE in the crystal space plugin. It "works" insofar that the avatar can be affected by dynamics, it will bounce around, etc.

The problem I ran into was keeping the avatar stable. I don't mean in a numerical sense (although that can be a problem too) but that when the avatar starts to tip over, you want to be able to apply a small counter-torque to the avatar so that it will stay upright. This is what I was not able figure out how to do. The alternative is to set the avatar's orientation directly, but that is frowned upon and can cause other problems.

So currently the "physics" in the csvosa3dl plugin uses a much simpler crystal space class which provides for basic gravity and collision detection. It's sufficient for now.

Either way, it's all being done on the client side, as we haven't yet put together a crystal space based server which can do physics on the server side to check up on the clients.

By the way, a motorcycle seems like it would be especially difficult to have accurate physics, since it relies on the stabilizing effects of the turning wheels to keep it from just tipping over. It needs a kickstand to stay upright if it isn't moving!

I'm not sure if that answers your question or not ;-)

[   Peter Amstutz   ][ [EMAIL PROTECTED] ][ [EMAIL PROTECTED]  ]
[Lead Programmer][Interreality Project][Virtual Reality for the Internet]
[ VOS: Next Generation Internet Communication][ http://interreality.org ]
[ http://interreality.org/~tetron ][ pgpkey:  pgpkeys.mit.edu  18C21DF7 ]
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (GNU/Linux)

iD8DBQFDpeSHaeHUyhjCHfcRAkWrAJ9h+Xaj4a8eGOLvDIx43JWXtMmudgCeMveD
X7R9+D2r4iYsQdEFQl7MLLE=
=nbTB
-----END PGP SIGNATURE-----


_______________________________________________
vos-d mailing list
vos-d@interreality.org
http://www.interreality.org/cgi-bin/mailman/listinfo/vos-d

Reply via email to