setAxisVelocity(_:)

    Sets an axis velocity. The velocity in the given vector axis will be set as the given vector length. This is useful for jumping behavior.

    RigidBody3D.swift:1254
    final func setAxisVelocity(_ axisVelocity: Vector3)

    Other members in extension

    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.