Raised This Month: $ Target: $400
 0% 

Rotate by moving direction


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
doondook
Member
Join Date: Dec 2010
Old 12-13-2011 , 03:34   Rotate by moving direction
Reply With Quote #1

Well, I need to rotate an entity, depending on its moving direction (only X and Y). Picture explains better I think

So entity is moving in some direction and I just don't get how to rotate it in right angle :\ Ofc I can do that right if it moves along exactly X or exactly Y axis. But how to make it depending on its velocity?
doondook is offline
Emp`
AMX Mod X Plugin Approver
Join Date: Aug 2005
Location: Decapod 10
Old 12-13-2011 , 12:13   Re: Rotate by moving direction
Reply With Quote #2

Try using pev_avelocity (angle velocity)
Emp` is offline
Send a message via AIM to Emp` Send a message via MSN to Emp` Send a message via Yahoo to Emp` Send a message via Skype™ to Emp`
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 11:49.


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