Race Sim Central
Rec.Autos.Simulators Archive

Car Physics: (OT) Lagrange Multipliers

2 posts by 2 people · 05 Oct 2001 14:29 UTC - 09 Oct 2001 06:15 UTC

Mike Stanley 05 Oct 2001 14:29 UTC#159691
Hi, This is not really directly related to car physics (other than that I'm using Lagrange multipliers for resolving the constraints within my suspension system) but I figured that somebody here would have had practical experience of implementing such a system. My vehicles consist of a hierarchy of rigid bodies connected by constraints (hinges, springs etc). All of the litrature I've found describing Lagrange multipliers assumes that you begin with a system of particles, and constraints occur between 2 or more particles. I figured I could develop this idea for use in my sim. In my system, the constraints occur at offsets from the COM of the rigid bodies, so I can easily get the world space position, velocity and acceleration of these points, and from then on treat them as individual particles. My question is this: Assume I have a particular rigid body, A, which is jointed with 2 other rigid bodies, B and C. The joint position on A for the A,B constraint is not the same as the joint position on A for the A,C constraint. Lets call these two joints Jb and Jc. Now with the system I've described above, these 2 joints would just be treated as seperate particles. However, there's a third distance constraint that results from the fact that Jb and Jc both lie on the same rigid body A. (ie the positions of Jb and Jc must stay a fixed distance apart). Do I have to add in this constraint explicitly, or will it just drop out of the system automatically (since any force applied to Jb will also be applied Jc and vice-versa, due to the definition of a rigid body)? Adding these extra constraints explicitly is not a problem theoretically, except that it could potentially increase the size of my Jacobian matrix dramatically, which would obviously increase the computation time. Is this the way to go for solving this system, or is there another technique that I don't know about? Any help or links to online resources greatly appreciated. Sorry for the OT post, Mike.
hehehe, that 's exactly what i want to do, indeed ;o) Damn, that was 8 years that i din't heard/read about Jacobian matrix, argl... i have to take a look in my old university courses ;o) -- Sebastien TIXIER - Game Developer Dynamics and Car Physics http://www.eden-studios.fr GPLRank Normal:-44.24 Monster:-124.44

Sponsors

Affiliate Links

Sim Gaming Expo MOZA Racing Sim-Lab Fanatec TrakRacer Asetek Internet Privacy From NordVPN Dreamhost Capital One Credit Card Application Fanatical CDKeys Amazon Amazon UK Project Motor Racing iRacing Get your racing gloves, boots and more from Demon Tweeks. Enlist at Roberts Space Industries, developers of Star Citizen and Squadron 42


Back from the ashes since July, 2019. First created in 2001 with the merger of Legends Central (founded 1999) and simracing.dk.

A site by a sort of sim racer, for sim racers, about racing sims. News and information on both modern and historic sim racing software titles.

All products and licenses property of their respective owners.


Facebook Threads Bluesky Twitter Mastodon Instagram YouTube Tiktok Twitch Reddit Google News Apple News Subscribe via WordPress Flipboard eBay

Race Sim Central © 1999-2026 | Some links pay RSC a commission. Advertising does not equal endorsement.Cookie Policy