Skip to content

Wrong inertia calculation in <RigidBody<N> as BodyPart<N>>::add_local_inertia_and_com #280

Description

@DasEtwas

As the Parallel axis theorem shows, one cannot just add inertia tensors of two "objects" whose CoM isn't overlapping.

The method <RigidBody<N> as BodyPart<N>>::add_local_inertia_and_com just adds the given inertia to the local inertia.

// Update local inertia.
self.local_inertia += inertia;

found in:
https://github.com/dimforge/nphysics/blob/master/src/object/rigid_body.rs#L747-L766

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions