Raised This Month: $ Target: $400
 0% 

how to rotate entity


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
avril-lavigne
Banned
Join Date: Apr 2009
Old 01-13-2013 , 11:12   how to rotate entity
Reply With Quote #1

I need to rotate entity just around the circle.
I found engfunc(EngFunc_RunPlayerMove
Its hard to calculate needed vectors. I need only simple rotating.


__________________
VDS in Europe 1 gb/s unmetered.Any configurations.
I accept Paypal, Moneybookers,etc

Last edited by avril-lavigne; 01-13-2013 at 11:13.
avril-lavigne is offline
Bos93
Veteran Member
Join Date: Jul 2010
Old 01-13-2013 , 11:23   Re: how to rotate entity
Reply With Quote #2

Change angles,example:

PHP Code:
new Float:vAngle]

    
vAngle[0] = 0.0;
    
vAngle[1] = -1.0;
    
vAngle[2] = 0.0;

        
entity_set_vector(g_iOberonEntEV_VEC_anglesvAngle); 
__________________
Bos93 is offline
Send a message via ICQ to Bos93 Send a message via Skype™ to Bos93
avril-lavigne
Banned
Join Date: Apr 2009
Old 01-13-2013 , 11:36   Re: how to rotate entity
Reply With Quote #3

ясно, оберон жжет )

Ill try, thanks
__________________
VDS in Europe 1 gb/s unmetered.Any configurations.
I accept Paypal, Moneybookers,etc

Last edited by avril-lavigne; 01-13-2013 at 11:37.
avril-lavigne is offline
Sylwester
Veteran Member
Join Date: Oct 2006
Location: Poland
Old 01-13-2013 , 11:44   Re: how to rotate entity
Reply With Quote #4

Angles will work if you want it to spin around it's own origin, but if you want it to move in a circle around some point then you need something like this:
http://forums.alliedmods.net/showthr...85#post1592085
__________________
Impossible is Nothing
Sylwester is offline
avril-lavigne
Banned
Join Date: Apr 2009
Old 01-13-2013 , 11:45   Re: how to rotate entity
Reply With Quote #5

no , around origin. but that code also useful, tnx
__________________
VDS in Europe 1 gb/s unmetered.Any configurations.
I accept Paypal, Moneybookers,etc

Last edited by avril-lavigne; 01-13-2013 at 11:45.
avril-lavigne is offline
Reply


Thread Tools
Display Modes

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 13:46.


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