54 bucks!! That is crazy! Future shop is selling those for like $200 ahahaha!
Thanks for the heads up JESUSFRK14! I might get myself one of those. Windows Vista came with crappy graphics card…if you can even call it a graphics card…haha
EDIT: sorry to go off topic!
I really like the models for the by the way. But those are some nice models for the cars
okay. currently, I have a bunch of separate scripts, but I will combine them later…
here’s the vehicle motion script…
import PhysicsConstraints
cont = GameLogic.getCurrentController()
body = cont.getSensor("body").getOwner()
body.applyImpulse([0.0, 0.0, 0.0], [0.0, 0.0, 0.0])
constraint_ID = body.constraint_ID
vehicle = PhysicsConstraints.getVehicleConstraint(body.constraint_ID)
gas = cont.getSensor("gas")
brake = cont.getSensor("brake")
steeringValue = body.steeringValue
rpm = cont.getSensor("tachometer").getOwner().rpm
gear = cont.getSensor("tachometer").getOwner().gear
speed = cont.getSensor("speedometer").getOwner().speed
validrpm = cont.getSensor("validrpm")
if gas.isPositive() and validrpm.isPositive() and gear == 1:
engineForce = (rpm*gear*7.5)+350
if gas.isPositive() and validrpm.isPositive() and gear == 2:
engineForce = (rpm*gear*3)+150
if gas.isPositive() and validrpm.isPositive() and gear == 3:
engineForce = (rpm*gear*2)+100
if gas.isPositive() and validrpm.isPositive() and gear == 4:
engineForce = (rpm*gear*1.5)+50
if gas.isPositive() and validrpm.isPositive() and gear == 5:
engineForce = (rpm*gear*1.35)+25
if gas.isPositive() and validrpm.isPositive() and gear == 6:
engineForce = (rpm*gear*1.25)+15
if gas.isPositive() and validrpm.isPositive() and gear == -1:
engineForce = -((rpm*gear*2)+250)
if gas.isPositive() and validrpm.isPositive() == False:
engineForce = 0
if gas.isPositive() == False:
engineForce = 0
if brake.isPositive():
engineForce = 0
braking = 10
else:
braking = 0
vehicle.applyEngineForce(engineForce, 2)
vehicle.applyEngineForce(engineForce, 3)
vehicle.applyBraking(braking, 2)
vehicle.applyBraking(braking, 3)
vehicle.setSteeringValue(steeringValue, 0)
vehicle.setSteeringValue(steeringValue, 1)
I think I’m probably done modifying this script except I will change the numbers that you multiply and add to the gears to get the speed. I will change those into properties so I can use the same script for all of the cars and they will all handle differently
and I can post any of the other ones if you want to see them
can anyone tell me a good way to record a video of a game in blender? I tried a couple times with CamStudio, and since it wasn’t synched with blender, It was all choppy and it skipped frames.