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.

Dark GDK / aiming a bullet forward

Author
Message
Wikaman1
16
Years of Service
User Offline
Joined: 17th Aug 2008
Location: Scotland
Posted: 21st Oct 2009 02:04
I'm making a top down 3d shooter and I'm currently working on the bullet system. I'm trying to just make the bullet move forward in the current direction the player is facing when the bullet is shot. This is what I have so far but it doesn't work as the bullet goes straight into the ground :/ any ideas?

How is it going
17
Years of Service
User Offline
Joined: 18th Sep 2007
Location: California
Posted: 21st Oct 2009 05:39
can't you x rotate it?
Wikaman1
16
Years of Service
User Offline
Joined: 17th Aug 2008
Location: Scotland
Posted: 21st Oct 2009 20:49
emm I don't think that would work...it's 3d and how much would i rotate it by?
=PRoF=
21
Years of Service
User Offline
Joined: 17th Mar 2003
Location: Milton Keynes, UK
Posted: 21st Oct 2009 20:55
u'r telling the bullet to move forwards.

forwards for the bullet is apparantly down. (Or at least, thats my assumption)

So what how is it going is suggesting is that you rotate it by 90 degrees in whatever axis is needed to make it point the right direction.

Without Music or Love the world would be a very empty place... Thank god I still have music.. --'-<@
SFCBias
15
Years of Service
User Offline
Joined: 8th Aug 2009
Location: Hephzibah, GA, USA
Posted: 21st Oct 2009 23:16
give the bullet the same rotation as the camera angle or player angle , then tell it to move forward

if(You.AddCode.toPost)TGC.Users.CanHelp = true;
else return NoCodeMessage;
Wikaman1
16
Years of Service
User Offline
Joined: 17th Aug 2008
Location: Scotland
Posted: 22nd Oct 2009 00:03
thank you, giving the bullet the same rotation as the player object made it work

Login to post a reply

Server time is: 2024-10-01 16:49:12
Your offset time is: 2024-10-01 16:49:12