Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

DarkBASIC Professional Discussion / Help with bullet direction?

Author
Message
RigSaw
2
Years of Service
User Offline
Joined: 25th Sep 2016
Location:
Posted: 16th Oct 2018 02:28
This is my first post. Plunging into AppGameKit and I am already stuck. Back in the DBPRO days, "shooting a bullet" (basically making a sphere fly from whatever the camera position was, to where ever the camera was *looking* was easy):


I quickly found trying to do this in AppGameKit was a lesson in humiliation...
The best I have been able to do is this:



While this works to some degree from wherever I am standing the bullet starts, but flys off in only the Z direction which I am currently using just to see if the object would move at all because there is no GetCameraDirection command or something that says, target where I am looking, or where the camera is looking... At least I can't find it if it exists. What I need is the equivalent of what "Set object to camera orientation" used to do in dbpro. Or whatever magic shizzle-whizzle that will make the bullet go to the center of the screen in the direction the camera is looking? I have been pouring over the docs but all I can find is 3 ways to move an object



Looking through these forums I know there is some AppGameKit ninja out there that probably knows what I'm trying to do. Can anyone out there help a nerd out?
Green Gandalf
VIP Member
14
Years of Service
Recently Online
Joined: 3rd Jan 2005
Playing: Malevolence:Sword of Ahkranox, Skyrim, Civ6.
Posted: 17th Oct 2018 10:38
You might have more luck if you posted your question on the appropriate AppGameKit board.

Login to post a reply

Server time is: 2019-01-23 08:58:26
Your offset time is: 2019-01-23 08:58:26