JBullet vehicle

Post Reply
iblis_s
Posts: 1
Joined: Wed Jan 02, 2013 7:01 pm

JBullet vehicle

Post by iblis_s »

I'm writing racing game for Android (JBullet + jPCT). I've got problem with wheels of a car. The problem is that wheels are vibrating all the time. The car careen while turning. I use variable worldTransform from WheelInfo to display graphics. I've tried many different parameters...

Code: Select all

		this.frictionSlip = 10000.0f;
		this.suspensionRestLength = 0.2f;
		this.suspensionStiffness = 500.0f;
		this.wheelnDampingCompression = 3.3f;
		this.wheelDampingRelaxation = 1.0f;
		
		this.rollInfluence = 1.0f;
		this.mass = 1500;
//physicsInfo.center - center of wheel
		final Vector3f connectionPointCS1 = new Vector3f(physicsInfo.center.x, 0.2f, -physicsInfo.center.z);

	Vector3f wheelAxleCS = new Vector3f(1, 0, 0);
	Vector3f wheelDirectionCS = new Vector3f(0, 1, 0);
		vehicle.addWheel(connectionPointCS1, wheelDirectionCS, wheelAxleCS,
				carConfiguration.getSuspensionRestLength(), 0.5f, tuning, front);
car body: box: (0.84999996, 0.50000006, 2.25), origin: (9.934108E-9, 0.81972176,0.0)
connection points:
wheel1: (-1.1999999, 0.2, 1.7)
wheel2: (1.1999999, 0.2, 1.7)
wheel3: (-1.1999999, 0.2, -1.7)
wheel4: (1.1999999, 0.2, -1.7)

Ground: box top side has y = 0

Have you any ideas how to solve it? Could you give me parameters from your programs?
Post Reply