So in a physics game I am working on, I need the user to be able to modify the force of an object. What I have setup so far is:
In a HUD, I have a setup of planes that when the user clicks either the plus or minus sign, the counter in the middle of the planes will go up or down accordingly. I set a real-time text plane to be modified when certain areas are clicked.
I also have a simple script that will essentially do what I need it to do, if I can link the property being modified in the HUD, to a variable that will be applied to force in the script.
from GameLogic import * cont = getCurrentController() ow = cont.getOwner senslist = cont.getSensors() actlist = cont.getActuators mousesensor = senslist force = actlist forcex = 0 forcey = a forcez = 0 forcel = 0 a = force.setForce(torqx,torqy,torqz,torql)
I have forcey set to a variable (a) and want that variable to be linked to the property in the HUD. Im also assuming that because I have the movement of the player set to local axis instead of global, the script wont overwrite that.
Im new to blender python, so Im sure that this will be a simple answer, to a very complex question.
Thanks in advance