BGE Python Force Tutorial (arsenal rsl YouTube channel)

Hey guys!

This is the script for the force tutorial I created ( Just apply the logic bricks the same way I did and the script will work fine! Tutorial name is: Blender Game Engine - part 60 - Applying Force (Python)

(Delete the arrows but keep the same spacing. Single arrow equals 4 spaces, but double equals 8)

import bge

def main():

–>cont = bge.logic.getCurrentController()
–>own = cont.owner

–>mouse = cont.sensors [“mouse”]

–>local = True
–>force = [0,300,0]

–>if mouse.positive:
–>-->own.applyForce(force, local)