Java-Gaming.org    
Featured games (81)
games approved by the League of Dukes
Games in Showcase (495)
Games in Android Showcase (114)
games submitted by our members
Games in WIP (563)
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 272 times)
0 Members and 1 Guest are viewing this topic.
Offline 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
Offline 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  
 
 
You cannot reply to this message, because it is very, very old.

 

Add your game by posting it in the WIP section,
or publish it in Showcase.

The first screenshot will be displayed as a thumbnail.

Dwinin (23 views)
2014-09-12 09:08:26

Norakomi (56 views)
2014-09-10 13:57:51

TehJavaDev (69 views)
2014-09-10 06:39:09

Tekkerue (34 views)
2014-09-09 02:24:56

mitcheeb (56 views)
2014-09-08 06:06:29

BurntPizza (40 views)
2014-09-07 01:13:42

Longarmx (25 views)
2014-09-07 01:12:14

Longarmx (31 views)
2014-09-07 01:11:22

Longarmx (31 views)
2014-09-07 01:10:19

mitcheeb (39 views)
2014-09-04 23:08:59
List of Learning Resources
by Longor1996
2014-08-16 10:40:00

List of Learning Resources
by SilverTiger
2014-08-05 19:33:27

Resources for WIP games
by CogWheelz
2014-08-01 16:20:17

Resources for WIP games
by CogWheelz
2014-08-01 16:19:50

List of Learning Resources
by SilverTiger
2014-07-31 16:29:50

List of Learning Resources
by SilverTiger
2014-07-31 16:26:06

List of Learning Resources
by SilverTiger
2014-07-31 11:54:12

HotSpot Options
by dleskov
2014-07-08 01:59:08
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
Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines | Managed by Enhanced Four Valid XHTML 1.0! Valid CSS!