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.

3 Dimensional Chat / smothing mouse rotation with curvevalue

Author
Message
CPU
21
Years of Service
User Offline
Joined: 4th Jul 2003
Location: Carlsbad, CA
Posted: 5th Dec 2003 03:27
Ok i'm trying to curve the value so that when i move the mouse and try to rotate my guy around that its fast if you do a large mousemove but small so that it's practical to do sniping aplications. I've tried playing around with curve values but so far with no succses, if anyone could describe how to use the curvevalue to do this your asstance would most appreciated.

thanks, CPU

Sparring - Loved by many, Pefected by few.

I'm going to live forever, or DIE IN THE ATTEMPT!!!"
Xander
22
Years of Service
User Offline
Joined: 3rd Mar 2003
Location: In college...yeah!
Posted: 7th Dec 2003 03:04 Edited at: 7th Dec 2003 03:06
I hope that this works, I just created it. It should work pretty well:



Adjust the 10.0 value in the curveangle to make it go faster or slower.

Good Luck

Xander - Bolt Software

Why do the antagonists always have to look so cool?
CPU
21
Years of Service
User Offline
Joined: 4th Jul 2003
Location: Carlsbad, CA
Posted: 7th Dec 2003 05:36
yeah, i had code somthing like that before, but the camera still jumps around to easily, it's hard cuz i wan't you to be able to turn quickly like if your getting shot at but accurate enough to be able to snipe at long range targets, i'll post the function i made, basicly i have the equasion(spl?) for a parabola curve and i give it a value for x and a (y=ax^2)and it'll give me the y value. It works somewhat the way i want but i'ts still jumpy in the middle numbers (like when your just kinda looking around and not trying to turn real fast) i'm still trying to fegure it out and it's ticking me off...



CPU

Sparring - Loved by many, Pefected by few.

I'm going to live forever, or DIE IN THE ATTEMPT!!!"
Xander
22
Years of Service
User Offline
Joined: 3rd Mar 2003
Location: In college...yeah!
Posted: 7th Dec 2003 21:53
I understand what you are trying to do, but you just can't do it that way. I will revise my code so that it is a function, like you want, and with your variables. Then just put it in and see if it works.



You must call this function repeatedly to get the desired results.

Good luck

Xander - Bolt Software

Why do the antagonists always have to look so cool?

Login to post a reply

Server time is: 2025-06-27 19:13:47
Your offset time is: 2025-06-27 19:13:47