Help by implementing ground friction, handbreak, finish line

Andy
Posts: 1
Joined: Mon Jan 16, 2012 7:52 pm
Location: Slovenia

Help by implementing ground friction, handbreak, finish line

Post by Andy »

Hi everyone! :D
For few days/nights I'm working on a simple racing game. I'm programing in java with jBullet.
There are some things which I want to optimize and need help:
1. Grass ground should be more slippery than track, so when car drives of the track that is visible on breaking, handling. Ground and track are two separated collision objects(to make that easier).
I tried with:

Code: Select all

		RigidBody rTerrain =localCreateRigidBody(0, tr, groundShape);
		rTerrain.setFriction(0.05f);
Change is visible on other objects(tires laying around), but not on a vehicel.
2. How to implement handbrake?
3. Could Bullet help me detect when start-finish line is crossed?
Collision Filtering could probably be the answer. I'm missing further code of the spaceship game in Wiki, where power up is added to spaceship when picked.

Thanks :)
You do not have the required permissions to view the files attached to this post.