Page 1 of 1

GetEntityRotateX(#Entity)

Posted: Fri May 06, 2016 10:19 am
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

Re: GetEntityRotateX(#Entity)

Posted: Fri May 06, 2016 1:29 pm
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.

Re: GetEntityRotateX(#Entity)

Posted: Fri May 06, 2016 1:57 pm
by Ampli
Yes, Thank you so much, I don't know how I missed that, It works great now.