bodyCreate

    Creates a 2D body object in the physics server, and returns the RID that identifies it. Use bodyAddShape(body:shape:transform:disabled:) to add shapes to it, use bodySetState(body:state:value:) to set its transform, and use bodySetSpace(body:space:) to add the body to a space.

    PhysicsServer2D.swift:1872
    static func bodyCreate() -> RID

    Other members in extension

    Types

    Type members