Blender Git Commit Log

Git Commits -> Revision 52b0a2b

Revision 52b0a2b by Erwin Coumans (master)
May 24, 2009, 01:55 (GMT)
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

Commit Details:

Full Hash: 52b0a2b3dbf5c5e0b930dcaff8647ec1d06e2d3c
SVN Revision: 20371
Parent Commit: 4922dd0
Lines Changed: +56, -14

4 Modified Paths:

/source/gameengine/Ketsji/KX_ConstraintWrapper.cpp (+3, -8) (Diff)
/source/gameengine/Ketsji/KX_ConstraintWrapper.h (+1, -2) (Diff)
/source/gameengine/Ketsji/KX_PyConstraintBinding.cpp (+8, -1) (Diff)
/source/gameengine/Physics/Bullet/CcdPhysicsEnvironment.cpp (+44, -3) (Diff)
By: Miika HämäläinenLast update: Nov-07-2014 14:18MiikaHweb | 2003-2021