blender/source
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
..
blender Set default constraint solver mode more compatible to Blender 2.48 settings, this fixes rigid body stacking in this blend file: 2009-05-23 22:35:47 +00:00
creator Mixed declaration and code. That should teach me to ignore warnings. 2009-05-12 23:53:55 +00:00
darwin Make: removing hidden directories from .app failed. 2009-04-23 09:59:19 +00:00
gameengine PhysicsConstraints.createConstraint: 2009-05-24 01:55:24 +00:00
icons Patch from GSR that a) fixes a whole bunch of GPL/BL license 2008-04-16 22:40:48 +00:00
kernel BGE performance, 3rd round: culling and rasterizer. 2009-05-07 09:13:01 +00:00
CMakeLists.txt cmake: apply ADD_SUBDIR patch. 2009-05-17 12:25:06 +00:00
Makefile * Fix for compile error on MSVC. 2009-05-15 18:21:27 +00:00
nan_compile.mk Added BF_PROFILE (same name as in scons files) option. 2009-03-23 19:52:49 +00:00
nan_definitions.mk This is patch [#18408] Build issues with make on Cygwin hosted MinGW (2.48.1) 2009-04-15 16:23:13 +00:00
nan_link.mk patch #8583: Add support for gcc on irix 2008-11-24 14:15:05 +00:00
nan_subdirs.mk Patch from GSR that a) fixes a whole bunch of GPL/BL license 2008-04-16 22:40:48 +00:00
nan_warn.mk Patch from GSR that a) fixes a whole bunch of GPL/BL license 2008-04-16 22:40:48 +00:00
SConscript * Minor cleanup of SCons files 2008-10-22 11:28:10 +00:00