Raised This Month: $ Target: $400
 0% 

Entity Rotating


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
zekStein
Member
Join Date: Feb 2011
Location: Romania :(
Old 07-21-2013 , 10:16   Entity Rotating
Reply With Quote #1

Hello there !
I need to rotate an entity around his origin to say like this ...

I don't want to rotate the 'entity', the 'model'( which is an entity made in VHE, for example a cilinder, or a box or a door ).

The rotation should be like an helicopter's propeller.

Can you help me ? I tried a lot of things with angles but .. nothing.

Thanks !
__________________
DUMITRU

Last edited by zekStein; 07-21-2013 at 10:17.
zekStein is offline
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 07-21-2013 , 10:43   Re: Entity Rotating
Reply With Quote #2

Not sure to fully understand, but to rotate an entity, generally you would use pev_avelocity.
__________________
Arkshine is offline
Bos93
Veteran Member
Join Date: Jul 2010
Old 07-21-2013 , 10:55   Re: Entity Rotating
Reply With Quote #3

Quote:
Originally Posted by Arkshine View Post
Not sure to fully understand, but to rotate an entity, generally you would use pev_avelocity.
nope,angles:

Example:

PHP Code:
    new Float:vAngle];

    
vAngle ] = 0.0;
    
vAngle ] += 1.0;
    
vAngle ] = 0.0;


    
entity_set_vectorpEntityEV_VEC_anglesvAngle ); 
__________________

Last edited by Bos93; 07-21-2013 at 17:06.
Bos93 is offline
Send a message via ICQ to Bos93 Send a message via Skype™ to Bos93
zekStein
Member
Join Date: Feb 2011
Location: Romania :(
Old 07-22-2013 , 11:07   Re: Entity Rotating
Reply With Quote #4

Quote:
Originally Posted by Arkshine View Post
Not sure to fully understand, but to rotate an entity, generally you would use pev_avelocity.

If i use ANGLES, the entity rotates on a circle to say like that. It orbits an axis that isn't the middle of the entity to say like that.

I want to rotate the entity, to orbit around his origin.

I'll try pev_avelocity.

LE : With :

PHP Code:
public rotatePropellerid )
{
    new 
ePropeller[id];
    
    if( 
!= )
    {
        new 
Float:a[3];
        
pevipev_avelocity);
        
a[1] -= 1.0;
        
set_pevipev_avelocitya);
    }
    

= nothing.

Yes, with EV_VEC_angles it's rotating but the origin is changed with each += 1.0 ... i want to stay in that origin and just rotate with angle..

LE2 ; To explain better, il took the solar system.

For example : The earth is rotating around his axis.
But the earth is rotating too around the sun.

So : The rotation with EV_VEC_angles it's just like the Earth around the Sun. I just want to rotate the entity around his axis( like the Earth around his axis ).
__________________
DUMITRU

Last edited by zekStein; 07-22-2013 at 12:05.
zekStein is offline
Old 07-24-2013, 02:53
zekStein
This message has been deleted by YamiKaitou. Reason: wait 14 days before you bump
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 06:30.


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