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 / How to do controlled rotations on 3D physics objects?

Author
Message
Space Dream Studios
Competition Prize Winner 2014
14
Years of Service
User Offline
Joined: 3rd Mar 2010
Location:
Posted: 8th Jan 2016 23:15
Tried to rotate 3D physics objects in a controlled way (steering a rocket) by using the SetObject3DPhysicsAngularVelocity command, but with very less success.
May be some of you has a good working solution allready?
Thanks in advance!!!
Stab in the Dark software
Valued Member
21
Years of Service
User Offline
Joined: 12th Dec 2002
Playing: Badges, I don't need no stinkin badges
Posted: 9th Jan 2016 00:29
If you post a code example of the problem I can suggest a solution.
The coffee is lovely dark and deep,and I have code to write before I sleep.
Space Dream Studios
Competition Prize Winner 2014
14
Years of Service
User Offline
Joined: 3rd Mar 2010
Location:
Posted: 9th Jan 2016 15:44 Edited at: 9th Jan 2016 15:46
I tried following but it looks like it's turning along global axis instead of local axis and actually a strange value behaviour... higher values decreasing and lower values increasing turning speed. Can't actually stop rotation of physics objects. Makes me many headaches I may don't understand the values and function of SetObject3DPhysicsangularVelocity correctly... Hope somebody could help out with a better way of controlling rotation of a physics object.... Thanks in advance!

Stab in the Dark software
Valued Member
21
Years of Service
User Offline
Joined: 12th Dec 2002
Playing: Badges, I don't need no stinkin badges
Posted: 9th Jan 2016 16:35
I have a few questions, what is the gravity setting? Are you using a scale factor?
What is the size of the object that you are applying the velocity too in comparison to the forceobj?
The coffee is lovely dark and deep,and I have code to write before I sleep.
Space Dream Studios
Competition Prize Winner 2014
14
Years of Service
User Offline
Joined: 3rd Mar 2010
Location:
Posted: 9th Jan 2016 18:13
That all shouldn't matter since we are talking about rotation.... or am I wrong?
CJB
Valued Member
20
Years of Service
User Offline
Joined: 10th Feb 2004
Location: Essex, UK
Posted: 9th Jan 2016 23:21
Some proper documentation would be useful for this command. SetObject3DPhysicsAngularVelocity(cube,0.0,0.0,0.0,0.0) appears to make my object disappear, whereas I was expecting it to simply stop rotating. I'm seeing the same faster rotation when setting a very low "initial speed" value compared to a higher initial speed issue as SDS. Bug?

V2 T1 (Mostly)
Phone Tap!
Uzmadesign
Space Dream Studios
Competition Prize Winner 2014
14
Years of Service
User Offline
Joined: 3rd Mar 2010
Location:
Posted: 10th Jan 2016 09:44
Yes, same here, object dissapears after setting all ritation values to zero. It"s a bug. Paul, please fix it and give us additional commands to control 3d physics objects in a better way. Very important is a command to control local rotations. Thanks!
Space Dream Studios
Competition Prize Winner 2014
14
Years of Service
User Offline
Joined: 3rd Mar 2010
Location:
Posted: 10th Jan 2016 09:46 Edited at: 10th Jan 2016 09:47
Yes, same here, object dissapears after setting all rotation values to zero. It's a bug. Paul, please fix it and give us additional commands to control 3d physics objects in a better way. Very important is a command to control local rotations. Thanks!
Stab in the Dark software
Valued Member
21
Years of Service
User Offline
Joined: 12th Dec 2002
Playing: Badges, I don't need no stinkin badges
Posted: 10th Jan 2016 11:17
Confirmed Bug
The coffee is lovely dark and deep,and I have code to write before I sleep.

Login to post a reply

Server time is: 2024-11-17 02:36:37
Your offset time is: 2024-11-17 02:36:37