CenterOfMassMode

    RigidBody3D.swift:47
    enum CenterOfMassMode

    Cases

    • case auto

      In this mode, the body’s center of mass is calculated automatically based on its shapes. This assumes that the shapes’ origins are also their center of mass.

    • case custom

      In this mode, the body’s center of mass is set through centerOfMass. Defaults to the body’s origin position.

    Other members in extension

    View members

    Hide members

    This section is hidden by default because it contains too many (49) members.

    Types

    Type members

    Instance members

    Show implementation details (1)

    Hide implementation details

    • func _integrateForces(state: PhysicsDirectBodyState3D?)

      Called during physics processing, allowing you to read and safely modify the simulation state for the object. By default, it works in addition to the usual physics behavior, but the customIntegrator property allows you to disable the default behavior and do fully custom force integration for a body.

    Citizens in SwiftGodot

    Conformances

    Type members

    Instance members

    Type features

    Instance features