blender/source/gameengine/Physics
Erwin Coumans 52b0a2b3db PhysicsConstraints.createConstraint:
allow to dynamically create rigid body constraints while disable collision detection between connected bodies, pass as 10th argument the flag 128

PhysiPython KX_ConstraintWrapper, setParam
export setParam(paramIndex,paramValue0,paramValue1) for Physics constraints
paramIndex 0,1,2 are linear limits, 3,4,5 are angular limits, 6,7,8 are linear motors, 9,10,11 are angular motors

For example:
disableConnectedBodies=128
cons = PhysicsConstraints.createConstraint(oid,rid,generic6dof,pivotInAx,pivotInAy,pivotInAz,angleX,angleY,angleZ,disableConnectedBodies)
#params 0,1,2 are linear limits, low,high value. if low > high then disable limit
cons.setParam(0,0,0)

I will provide an example .blend for Blender 2.49
2009-05-24 01:55:24 +00:00
..
BlOde BGE: new sensor object to generalize Near and Radar sensor, static-static collision capbility. 2009-05-17 12:51:51 +00:00
Bullet PhysicsConstraints.createConstraint: 2009-05-24 01:55:24 +00:00
common BGE: new sensor object to generalize Near and Radar sensor, static-static collision capbility. 2009-05-17 12:51:51 +00:00
Dummy BGE: new sensor object to generalize Near and Radar sensor, static-static collision capbility. 2009-05-17 12:51:51 +00:00
Sumo BGE: new sensor object to generalize Near and Radar sensor, static-static collision capbility. 2009-05-17 12:51:51 +00:00
Makefile Patch from GSR that a) fixes a whole bunch of GPL/BL license 2008-04-16 22:40:48 +00:00