Java-Gaming.org Hi !
 Featured games (91) games approved by the League of Dukes Games in Showcase (757) Games in Android Showcase (229) games submitted by our members Games in WIP (844) games currently in development
 News: Read the Java Gaming Resources, or peek at the official Java tutorials
 Home Help Search Login Register
Pages: [1]
 ignore  |  Print
 jBullet - 6DOFConstraint odd behaviour  (Read 692 times) 0 Members and 1 Guest are viewing this topic.
jdp1g09

Junior Newbie

 « Posted 2012-12-13 19:45:18 »

Hi, I've set up two cylinders with a 6dofconstraint between them, limiting to rotation only. Rotation about the horizontal axis works absolutely fine and I can achieve angles of up to +/-pi/2 as desired. The rotation about the vertical axis however is rather odd. As I reach about 1.05 radians there is a severe vibration of the "head" of the body that I have made.

I have recorded two videos to show what occurs. The description for the first details what I do. The second show that it is highly unlikely to be a collision problem because there is no contact between the two and the problems till occurs.

https://www.youtube.com/watch?v=OQu-YyxLvbw - shows the bug

https://www.youtube.com/watch?v=6wso6HDjqXA - show the bug without a collision (still occuring with the same behaviour)

I just wanted to see if there are any suggestion for what this could be, I've been working with it for about a week now and I'm just out of idea.

The following are all solutions I have tried:

•   Setting restitution (bounciness) to very low –same occurs
•   Set both linear and angular damping to a range of values between 0 and 1 – same occurs
•   Set angle to begin at greater than 1.05 – same occurs.
•   Continue to increase angle beyond 1.05 to see if calms down – opposite occurs and it gets more violent.
•   Try on body of just two cylinders – same occurs
•   Check for deep penetrations – none present
•   Separate two bodies linearly to rule out collision problem but keep the joint the same – same occurs.
•   Float the snake (mass = 0f for all parts other than head) above ground to remove ground interaction – same occurs
•   Turn off gravity whilst in locked position – behaviour delayed until 1.43rads
•   Increase the size (scale) of the snake as it is known for jBullet to have rendering issues with smaller items – no change.

Please account for the fact that the bullet points are just rough notes I've been making as testing so might not make complete sense, but hopefully they do

Thanks
jdp1g09

Junior Newbie

 « Reply #1 - Posted 2012-12-13 21:02:28 »

I have also now tried changing to bodies to capsules - same problem occurs
Pages: [1]
 ignore  |  Print

 EgonOlsen (42 views) 2018-06-10 19:43:48 EgonOlsen (22 views) 2018-06-10 19:43:44 EgonOlsen (43 views) 2018-06-10 19:43:20 DesertCoockie (197 views) 2018-05-13 18:23:11 nelsongames (124 views) 2018-04-24 18:15:36 nelsongames (123 views) 2018-04-24 18:14:32 ivj94 (864 views) 2018-03-24 14:47:39 ivj94 (125 views) 2018-03-24 14:46:31 ivj94 (768 views) 2018-03-24 14:43:53 Solater (140 views) 2018-03-17 05:04:08
 Java Gaming Resourcesby philfrei2017-12-05 19:38:37Java Gaming Resourcesby philfrei2017-12-05 19:37:39Java Gaming Resourcesby philfrei2017-12-05 19:36:10Java Gaming Resourcesby philfrei2017-12-05 19:33:10List of Learning Resourcesby elect2017-03-13 14:05:44List of Learning Resourcesby elect2017-03-13 14:04:45SF/X Librariesby philfrei2017-03-02 08:45:19SF/X Librariesby philfrei2017-03-02 08:44:05
 java-gaming.org is not responsible for the content posted by its members, including references to external websites, and other references that may or may not have a relation with our primarily gaming and game production oriented community. inquiries and complaints can be sent via email to the info‑account of the company managing the website of java‑gaming.org