Raised This Month: $ Target: $400
 0% 

VelocityByAim - Velocity Problem


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
KCE
Senior Member
Join Date: Jan 2005
Location: Los Angeles, CA
Old 03-30-2005 , 01:49   VelocityByAim - Velocity Problem
Reply With Quote #1

If I set the speed (arg 2) in the VelocityByAim function, to a high value, say 5000, it makes the object fly weird (in my case, the rocket I'm applying this function to). Instead of flying straight, it flys toward the top right of my screen. Anyone know how to fix this?
__________________

My 3D Art: http://k-c-e.deviantart.com/

[img]http://img213.**************/img213/7132/userbar152416mp2.gif[/img]
[img]http://img65.**************/img65/5606/userbar152433ie5.gif[/img]
[img]http://img223.**************/img223/7576/userbar152440yk6.gif[/img]
KCE is offline
Twilight Suzuka
bad
Join Date: Jul 2004
Location: CS lab
Old 03-30-2005 , 09:59  
Reply With Quote #2

use velocity_by_aim.

Dont specify high speeds.
__________________
Twilight Suzuka is offline
Send a message via AIM to Twilight Suzuka Send a message via MSN to Twilight Suzuka
PM
hello, i am pm
Join Date: Jan 2004
Location: Canalization
Old 03-30-2005 , 12:42  
Reply With Quote #3

Or use xs_anglevectors from xs.inc
__________________
hello, i am pm
PM is offline
Twilight Suzuka
bad
Join Date: Jul 2004
Location: CS lab
Old 03-30-2005 , 13:17  
Reply With Quote #4

Always looking for a way to pimp XS, arn't you PM?

Do XS stocks function faster or slower then natives?
__________________
Twilight Suzuka is offline
Send a message via AIM to Twilight Suzuka Send a message via MSN to Twilight Suzuka
PM
hello, i am pm
Join Date: Jan 2004
Location: Canalization
Old 03-30-2005 , 13:47  
Reply With Quote #5

Quote:
Originally Posted by Twilight Suzuka
Always looking for a way to pimp XS, arn't you PM?

Do XS stocks function faster or slower then natives?
The more complex ones are slower.
Simple ones should be faster with the JIT...

But this one is more useful than velocity_by_aim because you can pass in any angles (not only velocities).

And it's easier to use a stock than writing your own func ;)
__________________
hello, i am pm
PM is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 10:00.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode