Page 1 of 1

2 Requests

Posted: Sat Dec 08, 2007 4:33 pm
by BoltonBeedz
you know what would be good..
1> not sure of the terminoligy here, an elipsoid that doesnt rotate, for players/characters. can we do this already?
2> ability to modify angular momentum: it may be useful at some point to apply an external spinning force without adding any linear movement
cheers guv

Posted: Sat Dec 08, 2007 6:24 pm
by Zukarakox
You can make objects not rotate by setting their angle in your game code every update, and Im pretty sure theres a few ways to modify angularmomentum, in fact, I believe theres an <angularMomentum> variable in the physbody class :P

Posted: Sat Dec 08, 2007 8:30 pm
by BoltonBeedz
apologies, my mistake entirely.. and an elipsoid is pretty much the same as two spheres right?

Posted: Sat Dec 08, 2007 8:51 pm
by Norbo
Modifying angularMomentum directly should do the trick, and as for the player characters, that's something that will be slightly tricky. Two spheres can roughly approximate an ellipsoid, though the process of making it act like a player character will likely require some fancy footwork. Physically simulated objects could be used as a player, but with them you'll be trying to keep their rotation/orientation stable every frame.

Since Static objects can still have velocities, you might be able to hack something together using them, though the interaction between them and any other object will respond as if the player character has infinite mass. I'll see what I can do to make this easier (if not in v0.2.0, hopefully something soon after).

Posted: Sat Dec 08, 2007 8:54 pm
by BoltonBeedz
sweet