I need an object to apply a given linearVelocity depending on some other influences…
Therefore, I have this little script:
unhookedJump = (abs(edging * boardspeed)/2)
own['unhookedJump'] = unhookedJump
if air.positive and unhooked.positive and space.positive:
own.setLinearVelocity[(0.0,0.0,unhookedJump),0)]
edging and boardspeed are integer values that change dynamically.
So what I need, is to apply the value that results out of edging and boardspeed one time as linear velocity with the small “add” button activated.
Blender Game Engine Started
Blender Game Engine Finished
Basically, what I want to achieve is as if I had an actuator wich has some Z linear Velocity ran one time with the add-button activated. (Before I had it this way: value 10 at linearVelocity with add), which gave me a nice jump. But I need the jumpheight to change depending on the velocity and angle of the object)