AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Rotate by moving direction (https://forums.alliedmods.net/showthread.php?t=173944)

doondook 12-13-2011 03:34

Rotate by moving direction
 
Well, I need to rotate an entity, depending on its moving direction (only X and Y). Picture explains better I think :)
http://s2.itrash.ru/idb/855a5f85e284...3/ololfoot.jpg
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?

Emp` 12-13-2011 12:13

Re: Rotate by moving direction
 
Try using pev_avelocity (angle velocity)


All times are GMT -4. The time now is 11:49.

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