hello!
i am trying to use the blender game engine to make a virtual environment for a two-wheeled robot. the robot can be controlled by adjusting the torque to each of the wheels. i have been looking around the interwebs, but couldnt find any similar scenarios. in case i overlooked something, it would be great if you could point me there. currently the key allocation for controlling the robot is as follows:
‘q’ applies positive torque to the left wheel
‘a’ applies negative torque to the left wheel
‘w’ applies positive torque to the right wheel
‘s’ applies negative torque to the right wheel
i am trying not to use actuators (please correct me, in case i am mixing up terminology) because i am quite familiar with python and want to put as much as possible into the script. i am also deliberately trying to control the robot by rotation of the wheels instead of translational force applied to the whole vehicle, because i intend to make it physically as accurate as possible.
initially the vehicle moves quite as expected, but playing around for a while it gets stuck as if there were obstacles. but there are none. and i dont think its the edges of the cylindical wheels.
the blender file is attached to this post. it would be great if someone could have a look and help me out with my first approach to the bge.
thanks in advance!
Attachments
robot.blend (359 KB)