Java-Gaming.org
Play Revenge of the Titans! The situation is critical. We need fancy commanders to defend Earth, the moon, Mars!
Featured games (78)
games approved by the League of Dukes
Games in Showcase (406)
games submitted by our members
Games in WIP (293)
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 154 times)
0 Members and 1 Guest are viewing this topic.
Offline jdp1g09

Junior Newbie





« Posted 2012-12-13 20: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 22:02:28 »

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

Play Revenge of the Titans! The situation is critical. We need fancy commanders to defend Earth, the moon, Mars!
 
Get high quality music tracks for your game!

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

The first screenshot will be displayed as a thumbnail.

The invasion has landed! On Mars! And you're there to beat 'em!
cubemaster21 (74 views)
2013-05-17 21:29:12

alaslipknot (86 views)
2013-05-16 21:24:48

gouessej (115 views)
2013-05-16 00:53:38

gouessej (110 views)
2013-05-16 00:17:58

theagentd (121 views)
2013-05-15 15:01:13

theagentd (110 views)
2013-05-15 15:00:54

StreetDoggy (155 views)
2013-05-14 15:56:26

kutucuk (177 views)
2013-05-12 17:10:36

kutucuk (174 views)
2013-05-12 15:36:09

UnluckyDevil (184 views)
2013-05-12 05:09:57
Complex number cookbook
by Roquen
2013-04-24 12:47:31

2D Dynamic Lighting
by Oskuro
2013-04-17 16:46:12

2D Dynamic Lighting
by Oskuro
2013-04-17 16:45:57

2D Dynamic Lighting
by Oskuro
2013-04-17 16:23:20

Noise (bandpassed white)
by Roquen
2013-04-05 17:36:01

Noise (bandpassed white)
by Roquen
2013-04-03 16:17:38

Java Data structures
by Roquen
2013-03-29 13:21:12

Topic Request
by kutucuk
2013-03-22 21:42:01
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!
Page created in 0.396 seconds with 20 queries.