50 Commits

Author SHA1 Message Date
josh
673ff66a0c enabling ODE body in a few more situations as well
git-svn-id: svn://anubis/misc/OdeWorld@220 bd8a9e45-a331-0410-811e-c64571078777
2009-12-16 03:23:17 +00:00
josh
54c963fa3b fixed bug not enabling bodies when adding forces or torques in OdeWorld
git-svn-id: svn://anubis/misc/OdeWorld@219 bd8a9e45-a331-0410-811e-c64571078777
2009-12-16 03:22:07 +00:00
josh
922046dbf3 added fixed setGravity() to enable all bodies
git-svn-id: svn://anubis/misc/OdeWorld@218 bd8a9e45-a331-0410-811e-c64571078777
2009-12-09 00:13:53 +00:00
josh
47afc6d6ec renamed Object::addRel{Force,Torque} to add{Force,Torque}Rel
git-svn-id: svn://anubis/misc/OdeWorld@217 bd8a9e45-a331-0410-811e-c64571078777
2009-11-24 23:39:22 +00:00
josh
ec2304e77a added ag::object::getMass() and ag::object::setMass()
git-svn-id: svn://anubis/misc/OdeWorld@213 bd8a9e45-a331-0410-811e-c64571078777
2009-11-17 00:44:51 +00:00
josh
c11f481a78 renamed CCYLINDER to CAPSULE
git-svn-id: svn://anubis/misc/OdeWorld@210 bd8a9e45-a331-0410-811e-c64571078777
2009-11-16 03:10:02 +00:00
josh
ad5d978438 added debug statement to show how far the mass of an object is being translated
git-svn-id: svn://anubis/misc/OdeWorld@209 bd8a9e45-a331-0410-811e-c64571078777
2009-11-16 03:06:28 +00:00
josh
a8c8f89e87 fixed a geometry cloning bug
git-svn-id: svn://anubis/misc/OdeWorld@206 bd8a9e45-a331-0410-811e-c64571078777
2009-11-14 21:59:21 +00:00
josh
156bf27864 OdeWorld keeping track of all bodies so that when removing one it can re-enable the rest
git-svn-id: svn://anubis/misc/OdeWorld@204 bd8a9e45-a331-0410-811e-c64571078777
2009-11-14 14:20:38 +00:00
josh
70355ffe6c changed addPlane() to accept 4 parameters to directly specify a, b, c, d
git-svn-id: svn://anubis/misc/OdeWorld@203 bd8a9e45-a331-0410-811e-c64571078777
2009-11-02 18:05:41 +00:00
josh
9f0955b5af renamed CappedCylinder to Capsule to remove deprecated compiler warnings
git-svn-id: svn://anubis/misc/OdeWorld@202 bd8a9e45-a331-0410-811e-c64571078777
2009-10-29 14:14:28 +00:00
josh
5879a4b953 renamed CCylinder to Capsule globally
git-svn-id: svn://anubis/misc/OdeWorld@201 bd8a9e45-a331-0410-811e-c64571078777
2009-10-29 02:58:41 +00:00
josh
af7060b853 not calling dGeomGetPosition/Rotation() for planes
git-svn-id: svn://anubis/misc/OdeWorld@200 bd8a9e45-a331-0410-811e-c64571078777
2009-10-29 02:52:09 +00:00
josh
cd64681a71 renamed Cubes to Boxes
git-svn-id: svn://anubis/misc/OdeWorld@199 bd8a9e45-a331-0410-811e-c64571078777
2009-10-28 02:52:22 +00:00
josh
bee7a098bc changed add<Object>() methods to take refptr objects as arguments
git-svn-id: svn://anubis/misc/OdeWorld@198 bd8a9e45-a331-0410-811e-c64571078777
2009-10-26 03:20:40 +00:00
josh
71788d0707 added OdeWorld::GeomType to keep track of a geometry's type
git-svn-id: svn://anubis/misc/OdeWorld@197 bd8a9e45-a331-0410-811e-c64571078777
2009-10-26 02:32:13 +00:00
josh
a5268d4dd3 moved loadPhy out of OdeWorld::Object, add<Object>() functions returning success or failure status now
git-svn-id: svn://anubis/misc/OdeWorld@194 bd8a9e45-a331-0410-811e-c64571078777
2009-10-24 21:16:39 +00:00
josh
d7e9292cc6 setting auto disable flag for new bodies
git-svn-id: svn://anubis/misc/OdeWorld@193 bd8a9e45-a331-0410-811e-c64571078777
2009-10-21 00:25:39 +00:00
josh
f66cb39a98 added Object::setRotation()
git-svn-id: svn://anubis/misc/OdeWorld@192 bd8a9e45-a331-0410-811e-c64571078777
2009-10-19 17:24:23 +00:00
josh
b3a97286ba updated soft_erp value for contact joints - i may need to make this a configurable parameter
git-svn-id: svn://anubis/misc/OdeWorld@191 bd8a9e45-a331-0410-811e-c64571078777
2009-10-19 17:03:43 +00:00
josh
ce6fcab8f3 add absolute/relative force/torque addition functions
git-svn-id: svn://anubis/misc/OdeWorld@187 bd8a9e45-a331-0410-811e-c64571078777
2009-10-19 02:53:52 +00:00
josh
816e04f68f supported setting/getting a position/rotation for ODE objects with neither a body nor a geometry so that they can still be drawn in a certain orientation even if they do not participate in physics at all
git-svn-id: svn://anubis/misc/OdeWorld@182 bd8a9e45-a331-0410-811e-c64571078777
2009-10-17 22:21:49 +00:00
josh
24774bfe34 allowed OdeWorld::Object objects to be initialized with an optional scale param
git-svn-id: svn://anubis/misc/OdeWorld@171 bd8a9e45-a331-0410-811e-c64571078777
2009-10-12 21:29:32 +00:00
josh
e9d8872826 added a destructor to OdeWorld::Object to clean up the ODE body and geometries
git-svn-id: svn://anubis/misc/OdeWorld@170 bd8a9e45-a331-0410-811e-c64571078777
2009-10-12 15:39:38 +00:00
josh
8f95a9fed4 setting mass on the body after loading all components;
translating mass so the center of mass is at the origin for ODE;
when modeling make sure models have their COM at the origin or they may behave strangely!

git-svn-id: svn://anubis/misc/OdeWorld@169 bd8a9e45-a331-0410-811e-c64571078777
2009-10-12 13:56:47 +00:00
josh
2828194715 finished implementing Object cloning support
git-svn-id: svn://anubis/misc/OdeWorld@168 bd8a9e45-a331-0410-811e-c64571078777
2009-10-11 23:41:01 +00:00
josh
023e06a8d0 refactoring for object cloning
git-svn-id: svn://anubis/misc/OdeWorld@167 bd8a9e45-a331-0410-811e-c64571078777
2009-10-11 14:32:39 +00:00
josh
0496353916 fixed bug to initialize m_body to 0 in OdeWorld::Object
git-svn-id: svn://anubis/misc/OdeWorld@163 bd8a9e45-a331-0410-811e-c64571078777
2009-10-09 03:00:51 +00:00
josh
ccb6708633 added createObject() factory method, get position/rotation functions for Objects
git-svn-id: svn://anubis/misc/OdeWorld@162 bd8a9e45-a331-0410-811e-c64571078777
2009-10-08 04:11:43 +00:00
josh
3c6d089a47 refactored geometry addition classes into OdeWorld::Object
git-svn-id: svn://anubis/misc/OdeWorld@161 bd8a9e45-a331-0410-811e-c64571078777
2009-10-08 03:50:33 +00:00
josh
71b14157d0 migrating some Engine::Object functionality to OdeWorld::Object
git-svn-id: svn://anubis/misc/OdeWorld@160 bd8a9e45-a331-0410-811e-c64571078777
2009-10-08 02:38:32 +00:00
josh
09b50cb3e8 trying to get position to work
git-svn-id: svn://anubis/misc/OdeWorld@159 bd8a9e45-a331-0410-811e-c64571078777
2009-10-07 00:23:21 +00:00
josh
acb7c2ea40 added pushTransform(), fixed gravity to -Z axis by default
git-svn-id: svn://anubis/misc/OdeWorld@158 bd8a9e45-a331-0410-811e-c64571078777
2009-10-05 20:02:25 +00:00
josh
8b21df8af1 renamed worldStep() to step()
git-svn-id: svn://anubis/misc/OdeWorld@157 bd8a9e45-a331-0410-811e-c64571078777
2009-10-05 19:06:23 +00:00
josh
6a6ad94c71 added body parameter to loadPhy()
git-svn-id: svn://anubis/misc/OdeWorld@156 bd8a9e45-a331-0410-811e-c64571078777
2009-10-01 03:21:04 +00:00
josh
fcdbce9829 finished addPlane()
git-svn-id: svn://anubis/misc/OdeWorld@155 bd8a9e45-a331-0410-811e-c64571078777
2009-09-30 03:25:10 +00:00
josh
16af9222e7 moved mass rotation and translation to setupGeom()
git-svn-id: svn://anubis/misc/OdeWorld@154 bd8a9e45-a331-0410-811e-c64571078777
2009-09-29 02:42:59 +00:00
josh
834b846755 removed placeable parameter to setupGeom as it is only called with placeable objects
git-svn-id: svn://anubis/misc/OdeWorld@153 bd8a9e45-a331-0410-811e-c64571078777
2009-09-29 02:22:52 +00:00
josh
e56b943003 setting up mass and rotation in setupGeom()
git-svn-id: svn://anubis/misc/OdeWorld@152 bd8a9e45-a331-0410-811e-c64571078777
2009-09-29 02:10:15 +00:00
josh
925140f3fb replaced setupBody() with setupGeom()
git-svn-id: svn://anubis/misc/OdeWorld@151 bd8a9e45-a331-0410-811e-c64571078777
2009-09-28 02:32:39 +00:00
josh
a60a729b49 filling out the add*() functions more
git-svn-id: svn://anubis/misc/OdeWorld@150 bd8a9e45-a331-0410-811e-c64571078777
2009-09-28 02:24:28 +00:00
josh
d234e0147f added skeleton add{Cube,Sphere,Cylinder,Plane} methods to OdeWorld
git-svn-id: svn://anubis/misc/OdeWorld@149 bd8a9e45-a331-0410-811e-c64571078777
2009-09-28 01:32:51 +00:00
josh
25ef8f61d7 fixed infinite loop in loadPhy()
git-svn-id: svn://anubis/misc/OdeWorld@148 bd8a9e45-a331-0410-811e-c64571078777
2009-09-28 00:13:01 +00:00
josh
9b78f00f69 my forever loop runs forever when it should not
git-svn-id: svn://anubis/misc/OdeWorld@147 bd8a9e45-a331-0410-811e-c64571078777
2009-09-27 23:18:15 +00:00
josh
6723e1bf3b filling out more of loadPhy()
git-svn-id: svn://anubis/misc/OdeWorld@146 bd8a9e45-a331-0410-811e-c64571078777
2009-09-27 23:10:56 +00:00
josh
aed3841f1e working on OdeWorld::loadPhy()
git-svn-id: svn://anubis/misc/OdeWorld@145 bd8a9e45-a331-0410-811e-c64571078777
2009-09-27 22:47:05 +00:00
josh
91517f2931 added collide callback to OdeWorld
git-svn-id: svn://anubis/misc/OdeWorld@144 bd8a9e45-a331-0410-811e-c64571078777
2009-09-27 22:02:43 +00:00
josh
4a1ad7b56c added space and joint group
git-svn-id: svn://anubis/misc/OdeWorld@142 bd8a9e45-a331-0410-811e-c64571078777
2009-09-26 17:10:10 +00:00
josh
754f83e639 initial revision
git-svn-id: svn://anubis/misc/OdeWorld@141 bd8a9e45-a331-0410-811e-c64571078777
2009-09-26 16:53:08 +00:00
josh
f55527d25c created /misc/OdeWorld
git-svn-id: svn://anubis/misc/OdeWorld@140 bd8a9e45-a331-0410-811e-c64571078777
2009-09-26 16:38:38 +00:00