I am entirely new to BGE, well, just considering the use of it and how it applies to what I’d like to accomplish.
I’m not looking for actual working code examples per say (but examples in the form of code would surely help with the understanding. Assuming I understand the concept of a description of a solution). Could someone describe to me or link me to a forum thread that describes how one interacts with the physics engine.
Here is an example of what I’m trying to figure out:
I’d like to make a simple game where the space ship vehicle always thrusts towards where ever the user clicks their mouse.
Regardless of the 3d engine used I assume the process is something similar to this…
Convert the location that the mouse is clicked on in the game window (x,y) into an actual location in the 3d Game world (x,y,z). Calculate the distance between that point and the location of the space ship vehicle and then apply force in the co-ordinates which would propel the ship towards the location. It’s complicated math to acquire the co-ordinates to make objects thrust in 3d space. Maybe BGE has a pre built function to deal with such a thing?
So my questions, if someone has a moment:
-
Would this type of work be done with mostly logic nodes or mostly python code or both what mix?
-
could someone point me to some reference code or manual material that deals with this type of thing.
2a. For that matter, physics documention -
If I may ask a more generic question, do many people use BGE professionally or is mostly for hobby?
Thanks for your time!