GetEntityRotateX(#Entity)

Everything related to 3D programming
Ampli
User
User
Posts: 54
Joined: Sun Jul 29, 2007 7:05 pm
Location: Sweden

GetEntityRotateX(#Entity)

Post by Ampli »

Is there a way to get the rotation of an Entity?

I use RotateEntity() to set the rotation but I diden't find a way to read the rotation of an Entity.

I use Purebasic 5.42 LTS x64
/Ampli
applePi
Addict
Addict
Posts: 1404
Joined: Sun Jun 25, 2006 7:28 pm

Re: GetEntityRotateX(#Entity)

Post by applePi »

it is EntityPitch, EntityYaw, EntityRoll
as an example EntityYaw gives the rotation angle in degrees around Y axis
look the picture in http://theboredengineers.com/2012/05/th ... er-basics/
there is an example CopyAngle.pb : the right robot follow the left robot as it rotates in all the 3 directions.
Ampli
User
User
Posts: 54
Joined: Sun Jul 29, 2007 7:05 pm
Location: Sweden

Re: GetEntityRotateX(#Entity)

Post by Ampli »

Yes, Thank you so much, I don't know how I missed that, It works great now.
Post Reply