golf: fix more crashes

This commit is contained in:
John Cote 2020-01-08 00:19:38 -05:00
parent cd8ce05c2f
commit fbd8590498

View file

@ -362,7 +362,7 @@ class PhysicsWorldBase:
motor.setParamVel(1.5)
motor.setParamFMax(500000000.0)
boxsize = Vec3(1.0, 1.0, 1.0)
motor.attach(0, cross)
motor.attachBody(cross, 0)
motor.setAnchor(vPos)
motor.setAxis(ourAxis)
self.cross = cross
@ -374,7 +374,7 @@ class PhysicsWorldBase:
box.setPosition(vPos)
box.setQuaternion(self.placerNode.getQuat())
motor = OdeSliderJoint(self.world)
motor.attach(box, 0)
motor.attachBody(box, 0)
motor.setAxis(ourAxis)
motor.setParamVel(3.0)
motor.setParamFMax(5000000.0)
@ -434,7 +434,7 @@ class PhysicsWorldBase:
motor.setParamVel(1.0)
motor.setParamFMax(50000.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.setAxis(ourAxis)
self.cross = cross
@ -446,7 +446,7 @@ class PhysicsWorldBase:
box.setPosition(vPos)
box.setQuaternion(self.placerNode.getQuat())
motor = OdeSliderJoint(self.world)
motor.attach(box, 0)
motor.attachBody(box, 0)
motor.setAxis(ourAxis)
motor.setParamVel(moveDistance / 4.0)
motor.setParamFMax(25000.0)