golf: fix more crashes
This commit is contained in:
parent
cd8ce05c2f
commit
fbd8590498
1 changed files with 4 additions and 4 deletions
|
@ -362,7 +362,7 @@ class PhysicsWorldBase:
|
||||||
motor.setParamVel(1.5)
|
motor.setParamVel(1.5)
|
||||||
motor.setParamFMax(500000000.0)
|
motor.setParamFMax(500000000.0)
|
||||||
boxsize = Vec3(1.0, 1.0, 1.0)
|
boxsize = Vec3(1.0, 1.0, 1.0)
|
||||||
motor.attach(0, cross)
|
motor.attachBody(cross, 0)
|
||||||
motor.setAnchor(vPos)
|
motor.setAnchor(vPos)
|
||||||
motor.setAxis(ourAxis)
|
motor.setAxis(ourAxis)
|
||||||
self.cross = cross
|
self.cross = cross
|
||||||
|
@ -374,7 +374,7 @@ class PhysicsWorldBase:
|
||||||
box.setPosition(vPos)
|
box.setPosition(vPos)
|
||||||
box.setQuaternion(self.placerNode.getQuat())
|
box.setQuaternion(self.placerNode.getQuat())
|
||||||
motor = OdeSliderJoint(self.world)
|
motor = OdeSliderJoint(self.world)
|
||||||
motor.attach(box, 0)
|
motor.attachBody(box, 0)
|
||||||
motor.setAxis(ourAxis)
|
motor.setAxis(ourAxis)
|
||||||
motor.setParamVel(3.0)
|
motor.setParamVel(3.0)
|
||||||
motor.setParamFMax(5000000.0)
|
motor.setParamFMax(5000000.0)
|
||||||
|
@ -434,7 +434,7 @@ class PhysicsWorldBase:
|
||||||
motor.setParamVel(1.0)
|
motor.setParamVel(1.0)
|
||||||
motor.setParamFMax(50000.0)
|
motor.setParamFMax(50000.0)
|
||||||
boxsize = Vec3(1.0, 1.0, 1.0)
|
boxsize = Vec3(1.0, 1.0, 1.0)
|
||||||
motor.attach(0, cross)
|
motor.attachBody(cross, 0)
|
||||||
motor.setAnchor(self.subPlacerNode.getPos(self.root))
|
motor.setAnchor(self.subPlacerNode.getPos(self.root))
|
||||||
motor.setAxis(ourAxis)
|
motor.setAxis(ourAxis)
|
||||||
self.cross = cross
|
self.cross = cross
|
||||||
|
@ -446,7 +446,7 @@ class PhysicsWorldBase:
|
||||||
box.setPosition(vPos)
|
box.setPosition(vPos)
|
||||||
box.setQuaternion(self.placerNode.getQuat())
|
box.setQuaternion(self.placerNode.getQuat())
|
||||||
motor = OdeSliderJoint(self.world)
|
motor = OdeSliderJoint(self.world)
|
||||||
motor.attach(box, 0)
|
motor.attachBody(box, 0)
|
||||||
motor.setAxis(ourAxis)
|
motor.setAxis(ourAxis)
|
||||||
motor.setParamVel(moveDistance / 4.0)
|
motor.setParamVel(moveDistance / 4.0)
|
||||||
motor.setParamFMax(25000.0)
|
motor.setParamFMax(25000.0)
|
||||||
|
|
Loading…
Reference in a new issue