bodySetShapeAsOneWayCollision(body:shapeIdx:enable:margin:)

    Sets the one-way collision properties of the body’s shape with the given index. If enable is true, the one-way collision direction given by the shape’s local upward axis body_get_shape_transform(body, shape_idx).y will be used to ignore collisions with the shape in the opposite direction, and to ensure depenetration of kinematic bodies happens in this direction.

    PhysicsServer2D.swift:2361
    static func bodySetShapeAsOneWayCollision(body: RID, shapeIdx: Int32, enable: Bool, margin: Double)

    Other members in extension

    Types

    Type members