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.

Author
Message
thyr
18
Years of Service
User Offline
Joined: 28th Aug 2006
Location:
Posted: 18th Feb 2007 18:00
hello,

I'm testing dark physics and I trying to do some bullet shooting, but I'm having problems with axis. If I put:



The bullet always is shot in the "global axis",no matter where the character is facing,the bullet always is shot at the same direction. How can I make the bullet to be shot mattering where the character is facing?

Thnx!

I am a Maverick hunter. Never know when they're acting against you.
Cash Curtis II
19
Years of Service
User Offline
Joined: 8th Apr 2005
Location: Corpus Christi Texas
Posted: 18th Feb 2007 19:56
You need to post code so that we can fix it.

Although, why are you only applying velocity to one axis? It seems to me you'd only get movement on the Z axis.


Come see the WIP!
thyr
18
Years of Service
User Offline
Joined: 28th Aug 2006
Location:
Posted: 19th Feb 2007 13:16
I want to shoot the bullet at the direction of the character, but with this code is always shot at the direction of the z axis.



I am a Maverick hunter. Never know when they're acting against you.
UltraG
17
Years of Service
User Offline
Joined: 19th Jan 2007
Location: Right here, where I am.
Posted: 21st Feb 2007 03:48
Try



instead of



That should help.
thyr
18
Years of Service
User Offline
Joined: 28th Aug 2006
Location:
Posted: 21st Feb 2007 13:20
Ok thanks! This really fix the problem. And a last doubt, is it possible to make joints between the character controller and other objects?


Thnx

I am a Maverick hunter. Never know when they're acting against you.
thyr
18
Years of Service
User Offline
Joined: 28th Aug 2006
Location:
Posted: 21st Feb 2007 20:30
Well I've been trying with that command, but now the bullet is shot
randomly, if I'm going forward is shot in a direction, but if I'm going backwards is shot in another direction . Anyone knows how to make a bullet system?

Thnx!



I am a Maverick hunter. Never know when they're acting against you.

Login to post a reply

Server time is: 2024-11-24 16:59:04
Your offset time is: 2024-11-24 16:59:04