www.jpct.net

jPCT-AE - a 3d engine for Android => Support => Topic started by: iblis on December 30, 2012, 03:46:34 am

Title: jPCT-AE + JBullet vehicle
Post by: iblis on December 30, 2012, 03:46:34 am
I'm looking for any examples of vehicle's physics supported by JBullet with jPCT-AE. I've tried to connect these libraries all day based on VehicleDemo from JBullet and jPCT wiki and.... The problem is that the program doesn't discover collision between wheels and ground, steering doesn't work at all. I have any idea how to combine it. I would be very pleased if someone helped me.

Iblis
Title: Re: jPCT-AE + JBullet vehicle
Post by: EgonOlsen on January 01, 2013, 11:09:54 am
No idea...have you tried to run that thing on the desktop version?
Title: Re: jPCT-AE + JBullet vehicle
Post by: iblis on January 02, 2013, 06:08:10 pm
ok.. It's working. I didn't notice that the wheel's connection point is in chassis coordinate system and it shouldn't be translated.

However I've got another problem: wheels vibrate all the time. The car body doesn't move, but wheels jump. The translation vector has very small values (10^-5), but sometimes the y coordinate is much higher (0.1 - 0.5). Parameters are the same like here: link (https://www.google.pl/url?sa=t&rct=j&q=&esrc=s&source=web&cd=1&cad=rja&ved=0CDMQFjAA&url=http%3A%2F%2Fblender3d.org.ua%2Fforum%2Fgame%2Fiwe%2Fupload%2FVehicle_Simulation_With_Bullet.pdf&ei=6WHkUP3aJ8iJ4gSMiIFA&usg=AFQjCNEb_eG6jWGeAFOLIj-WnjE5ev9miA&sig2=jzYsBkDF5HuOpW2x_by5sA&bvm=bv.1355534169,d.bGE)
Moreover the car rolls over while turning.
The ground is BoxShape and the collisions with wheels and the car body are correct.
Title: Re: jPCT-AE + JBullet vehicle
Post by: EgonOlsen on January 02, 2013, 09:09:47 pm
I've no clue about jBullet...it might be a good idea to ask that question in a jBullet oriented forum...if such thing exists...
Title: Re: jPCT-AE + JBullet vehicle
Post by: kbjansen on February 02, 2013, 12:51:54 pm
Hi Iblis,

so you say your wheels are vibrating!?
What physical features did you applied to the Raycast vehicle/ Wheels and the box on ground?
It is really hard to discover the right values for restitution, friction, mass, lin. and ang. damping because there are only really poor docs about it ;)
This drove me insane, too....