Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

AppGameKit Studio Chat / SetObjectRotation bug

Author
Message
jd_zoo
4
Years of Service
User Offline
Joined: 12th May 2018
Location: Nova Scotia
Posted: 23rd Oct 2022 15:38
Ok so running into some frustrations with simple rotating of a kinematic object...

Rotate on Y axis no problem, reported angle goes from 0 to 360 degrees.
Rotate on Z axis and object will rotate completely, but reported angle goes from 0 to 180 before switching to -180 (negative) and then counting back to zero.
Rotate on X axis only goes as far as 89.999 degrees, before getting stuck and rotating the Y and Z axis by 180.

Am I missing something here??? I thought this was working not too long ago but I just went back to version 2021-12-06 and not working there either.

Check out Automation on Steam now
https://store.steampowered.com/app/1698690/Automation/
ando
2
Years of Service
User Offline
Joined: 21st Feb 2020
Location: Australia
Posted: 23rd Oct 2022 18:51 Edited at: 23rd Oct 2022 19:07
You can use the quaternion commands for getting and making rotations.

I had to overcome same probs with my 3D radar.
https://forum.thegamecreators.com/thread/226510

More info here...
https://forum.thegamecreators.com/thread/227966
BASIC appeared in May 1964. Lightning flashed, the wind roared and the Earth moved.
And nine months later I was born.
So here I am.
I am Basic.
Code is in my genes.
blink0k
Moderator
9
Years of Service
User Offline
Joined: 22nd Feb 2013
Location: the land of oz
Posted: 23rd Oct 2022 20:18
Alternatively don't rely on the angles return by GetObjectAngle. Use your own angles
haliop7
User Offline
Joined: 1st Mar 2022
Location:
Posted: 28th Oct 2022 05:58
Quote: "Alternatively don't rely on the angles returned by GetObjectAngle. Use your own angles"


Would you say that for 2D sprites? I get it now, it is a much better way to handle it. I think you saved tons of work hours for me.
blink0k
Moderator
9
Years of Service
User Offline
Joined: 22nd Feb 2013
Location: the land of oz
Posted: 31st Oct 2022 21:54
Quote: "Would you say that for 2D sprites?"

I'm not sure about 2D sprites but I know it's the case for 3D objects/cameras
fubarpk
Retired Moderator
18
Years of Service
User Offline
Joined: 11th Jan 2005
Playing: AGK is my friend
Posted: 1st Dec 2022 00:07
hope this helps jd_zoo
PK

Login to post a reply

Server time is: 2023-02-06 18:40:10
Your offset time is: 2023-02-06 18:40:10