I’m searching for help on how to accelerate an object. I could use a tutorial or even just a simple script example that shows how one could accomplish this using python.
I have tried scripting that looks like this but have always failed. :spin:
you’ll need to do that for just one part of object.getLinearVelocity(0), so, if you wanted to accelerate on the +y axis, you will need a timer property (call it time), an acceleration property(acc for short), and you’ll need a sensor to apply the acceleration(WKey for example).
So in your script you would need to check if the WKey was just pressed, if it was, then you set time to zero. and then you can check if WKey is being held down, if it is, you do it this way: