areaCreate

    Creates a 2D area object in the physics server, and returns the RID that identifies it. Use areaAddShape(area:shape:transform:disabled:) to add shapes to it, use areaSetTransform(area:transform:) to set its transform, and use areaSetSpace(area:space:) to add the area to a space.

    PhysicsServer2D.swift:917
    static func areaCreate() -> RID

    Other members in extension

    Types

    Type members