# Physics Simulation Forum

 All times are UTC

 Page 3 of 3 [ 33 posts ] Go to page Previous  1, 2, 3
 Print view Previous topic | Next topic
Author Message
 Post subject: Re: driving gamePosted: Thu Jun 10, 2010 1:06 am

Joined: Wed Jan 20, 2010 1:35 am
Posts: 13
tatsujin wrote:
dakffyd wrote:
kester wrote:
Bullet sets the wheel contact normal in btVehicleRaycaster::castRay.

I derive from btVehicleRaycaster and override that method ...

How do you determine which vertices to use?
I assume the data must be somewhere in either the btRigidBody or the btVehicleRaycasterResult ?

Generally, since the vehicles are heavy & slow-moving, perhaps you'll get better result using rigid body wheels instead of ray cast.
In my own experiments, rigid body wheels have quite big advantages over raycast in terms of being realistic. But since things usually breaks apart physics-wise at high speed (rotations) and require more processing power, raycast usually is better suited for racing-type games... But your choice of vehicles implies that this is not racing

true. But processor power IS a concern. Hence, we're trying raycast vehicles first.

@kester: Thanks! That triangle index is what I was looking for.

Top

 Post subject: Re: driving gamePosted: Wed Nov 30, 2011 12:53 pm

Joined: Fri Nov 25, 2011 6:15 am
Posts: 3
I am trying to implement "interpolate normals" in my racing game. As per Kester's document of interpolate normals, i am not able to figure out which normals,positions and indices are used in InterpolateMeshNormal method. Please give your valuable suggestions...

Regards
huRR[i]c@ne

Top

 Post subject: Re: driving gamePosted: Tue Dec 13, 2011 8:35 pm

Joined: Mon Dec 01, 2008 5:08 am
Posts: 27
Hi,

The normals, positions and indices I used came from the collision mesh for my road.

There's a lot of work not really mentioned in my article: you need to implement a btStridingMeshInterface class to provide the normals, implement ray-cast callbacks, and the vehicle ray-caster to override the wheel casts.

I haven't got my original code to refer to any more, and it's been quite a while since I've looked at it, but I've updated the code in my article to indicate the general idea. I haven't tested it though.

The article's here: http://bit.ly/tmC4nG

Cheers,

Kester

Top

 Display posts from previous: All posts1 day7 days2 weeks1 month3 months6 months1 year Sort by AuthorPost timeSubject AscendingDescending
 Page 3 of 3 [ 33 posts ] Go to page Previous  1, 2, 3

 All times are UTC

#### Who is online

Users browsing this forum: Google [Bot] and 0 guests

 You cannot post new topics in this forumYou cannot reply to topics in this forumYou cannot edit your posts in this forumYou cannot delete your posts in this forumYou cannot post attachments in this forum

Search for:
 Jump to:  Select a forum ------------------ BULLET PHYSICS LIBRARY USERS    General Bullet Physics Support and Feedback    Release Announcements    Applications, Games, Demos or Movies using Bullet PHYSICS AUTHORING TOOLS, SERIALIZATION AND STANDARDS    Physics authoring tools, serialization, standards and related topics RESEARCH AND DEVELOPMENT IN COLLISION DETECTION & PHYSICS. Don't post Bullet support questions here!    Research and development discussion about Collision Detection and Physics Simulation    Links, Papers, Libraries, Demos, Movies, Comparisons       Non-technical forum and license/patent discussion    Career Opportunities