I’m simulating friction on a vehicle. Since the friction is applied at the contact point, away from the center of mass, there is also a rotational component. Finding the angular impulse resulting from the friction force in each physics step is trivial (arm x friction * dt)
. It’s important that I’m not applying an angular impulse that would reverse the vehicle’s angular momentum in the next step. So I need to scale it down according to the vehicle’s angular momentum.
Angular momentum = moment of inertia * angular velocity
Angular velocity is easy to find, but surprisingly I have not found any mentioning of rotational inertia/moment of inertia or tensors in any Roblox documentation.
I’ve seen a handful of Roblox games that simulate vehicle dynamics fairly realistically. Do they write their own matrix and tensor libraries?
I don’t think you can get it from Roblox. I have no experience of this in Roblox, but if I was modelling a vehicle I would start by setting all of the parts to be massless, and then add just one cube as a “physics controller”, you can then give that cube a mass and size that gives you the inertial properties you know and want.
HTH