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 Classic Chat / problem with x angle glitch hitting roughly 90 deg when y angle=0

Author
Message
SoftMotion3D
AGK Developer
19
Years of Service
User Offline
Joined: 24th Aug 2005
Location: Calgary,Alberta
Posted: 14th Jun 2016 00:45 Edited at: 14th Jun 2016 00:55
edit: sorry my y rotation is at 180.0 where the glitch is happening


when i hit roughly 90.0 deg on my x angle with my saw and my yangle hits 180.0 or within close proximity i get a jerk in my object.... then it looks like it swings the object back to where its suppose to be.

i know paul did some work with the xangle and im wondering if it can be tweeked a bit more cause it still jerks when you hit that certain angle before it makes the correction.

paul watch the video i posted on youtube please showing you at angle y=180 and my chainsaw at roughly 90 or close to it... it jerks then goes where its suppose to.

unless someone can explain with major detail how to do rotations otherwise.... im stuck with this glitch.

SoftMotion3D
AGK Developer
19
Years of Service
User Offline
Joined: 24th Aug 2005
Location: Calgary,Alberta
Posted: 14th Jun 2016 00:58 Edited at: 14th Jun 2016 02:24
edit:.... nope lowering the xangle below 90 did not solve the glitch.... maybe its not related to the old xangle glitch afterall.... but..

it is the x angle that swings the saw up.



edit: my mistake... the x angle is hovering around 0.0 when the y angle hits 180 and thats where the jerk happens. For now i will see if i can correct it with code to skip that area on the x axis entirely
SoftMotion3D
AGK Developer
19
Years of Service
User Offline
Joined: 24th Aug 2005
Location: Calgary,Alberta
Posted: 14th Jun 2016 02:54 Edited at: 14th Jun 2016 03:09
ok i have captured the problem in a small code snippet.



if you force a certain angle... such as z=0.0 then it eventualy goes crazy and locks up. i tried forcing x to equal 0.0 and rotated around z and y and it was fine.


edit: looks like its x.... lol! you dont even need to rotate the other angles... if your forcing the other angles to 0 then the x will lock at 89. something and stop rotating
Jack
19
Years of Service
User Offline
Joined: 4th Oct 2004
Location: [Germany]
Posted: 14th Jun 2016 10:17 Edited at: 14th Jun 2016 10:19
Gimbal lock?


[/url]
SoftMotion3D
AGK Developer
19
Years of Service
User Offline
Joined: 24th Aug 2005
Location: Calgary,Alberta
Posted: 14th Jun 2016 14:12
Yes appears that way.

I dont use the z axis on that saw.... Its just using x,y so i will make an adjustment to all my weapons before i get too far so the rotations used can be y,z leaving x blank
SoftMotion3D
AGK Developer
19
Years of Service
User Offline
Joined: 24th Aug 2005
Location: Calgary,Alberta
Posted: 15th Jun 2016 01:04
thanks for that video jack!

it helped me to try different things and i ended up changing my rotation order to fix the glitch.

now its gone!!! YAHOO!

i used YXZ order and now i cant see any glitches at any angle of my animations.

@paul.... there is nothing wrong with agk .... it was my own code!

thanks again jack! your a project saver
Jack
19
Years of Service
User Offline
Joined: 4th Oct 2004
Location: [Germany]
Posted: 15th Jun 2016 01:59
Quote: "your a project saver"

You too =)
' glad I could help!

[/url]

Login to post a reply

Server time is: 2024-09-29 15:27:21
Your offset time is: 2024-09-29 15:27:21