hi!!,a new blender noob here XD, coming from maya,etc…
and sorry for my english…im spanish
looks like when all want to learn some of the game engine, we found the maze tutorial…
so i do, and try to do by myself something more advanced, like ball rotating in a natural way,camera control by mouse,etc…
i read a lot of post here, tutorials, pieces of code trying to understand…some from here…there…
so…ah! yes…the question XD
this is my maze, and my ball, the idea is to “push” the ball in the direction the camera is facing.
the empty is vertex-parent to a vertex in the center of the ball, and the camera is children of the empty. all right, i upload the blend too…and it “works”
there are two scripts, mousecontrol and ballmovement
the mousecontrol takes the code from Phymec example of the Planks tutorial
and the ballmovement comes from a lot of yours,here in the forum,of key events and “addforce” methods,etc…
juegolaberintoblend.blend (1.46 MB)
(WASD to force, mouse to look)
but if i change the FORCE value, to some higher than 1, this happens
so im afecting the camera somehow (maybe something in the parenting? im afecting the empty,or the vertex-parent in the ball? )…
if you look at the code, i access the localorientation of the empty to apply force in that direction, the camera follows the empty…simply…
is the first time i take phyton coding and blender…so at this moment…XD i dont know what or why,this happens…
sorry for the long post guys, and thanks.