Hey guys, so I am following a tutorial to make vehicle physics,
http://www.blender3dclub.com/index.php?name=News&file=article&sid=42
On the tutorial they use a script which is provided
http://www.blender3dclub.com/downloads/buggy.py
When I add this to my Blender and I run the game, it crashes to the desktop.
I have narrowed down the script to this
import Blender
import GameLogic
import PhysicsConstraints
game = GameLogic
physics = PhysicsConstraints
cont = game.getCurrentController()
body = cont.getOwner()
body.applyImpulse([0,0,0],[0,0,0])
#physics.setDebugMode(1)
if (body.init == 0):
body.init = 1
physicsid = body.getPhysicsId()
vehicle = physics.createConstraint(physicsid,0,11)
body.cid = vehicle.getConstraintId()
vehicle = physics.getVehicleConstraint(body.cid)
else:
vehicle = physics.getVehicleConstraint(body.cid)
vehicle.setSteeringValue(body.steer,0)
vehicle.setSteeringValue(body.steer,1)
vehicle.applyEngineForce(body.force *.5,0)
vehicle.applyEngineForce(body.force *.5,1)
vehicle.applyEngineForce(body.force * .15,2)
vehicle.applyEngineForce(body.force * .15,3)
influence = -1
And its still crashing! I ran Blender through the terminal, and this is the only thing close to an error that I am getting
“Warning: Could not determine argv[0] path”
No other errors than that!
Somebody help please!
