Skip to content

Class: Scene

Methods

NameDescription
:addComponentBounds(entityId,data)
:addComponentCollisionShape(entityId,data)
:addComponentGrid(entityId,data)
:addComponentIcon(entityId,data)
:addComponentLabel(entityId,data)
:addComponentModel(entityId,data)
:addComponentNetwork(entityId,data)
:addComponentPathfinding(entityId,data)
:addComponentPlayerControl(entityId,data)
:addComponentRigidBody(entityId,data)
:addComponentRigidBody(entityId,data)
:addComponentShip(entityId,data)
:addComponentTransform(entityId)
:createEntity()
:getComponentBounds(entityId)
:getComponentCollisionShape(entityId)
:getComponentGrid(entityId)
:getComponentIcon(entityId)
:getComponentLabel(entityId)
:getComponentModel(entityId)
:getComponentNetwork(entityId)
:getComponentPathfinding(entityId)
:getComponentPlayerControl(entityId)
:getComponentRigidBody(entityId)
:getComponentRigidBody(entityId)
:getComponentShip(entityId)
:getComponentTransform(entityId)
:patchComponentBounds(entityId)
:patchComponentCollisionShape(entityId)
:patchComponentGrid(entityId)
:patchComponentIcon(entityId)
:patchComponentLabel(entityId)
:patchComponentModel(entityId)
:patchComponentNetwork(entityId)
:patchComponentPathfinding(entityId)
:patchComponentPlayerControl(entityId)
:patchComponentRigidBody(entityId)
:patchComponentRigidBody(entityId)
:patchComponentShip(entityId)
:patchComponentTransform(entityId)
:removeEntity(entityId)

Fields

NameTypeDescription
physicsPhysicsDynamicsWorld

Method declarations

Method: addComponentBounds

lua
function Scene:addComponentBounds(
    entityId,
    data
) end

Parameters:

  • entityId (integer)
  • data (table)

Returns:

Method: addComponentCollisionShape

lua
function Scene:addComponentCollisionShape(
    entityId,
    data
) end

Parameters:

  • entityId (integer)
  • data (table)

Returns:

Method: addComponentGrid

lua
function Scene:addComponentGrid(
    entityId,
    data
) end

Parameters:

  • entityId (integer)
  • data (table)

Returns:

Method: addComponentIcon

lua
function Scene:addComponentIcon(
    entityId,
    data
) end

Parameters:

  • entityId (integer)
  • data (table)

Returns:

Method: addComponentLabel

lua
function Scene:addComponentLabel(
    entityId,
    data
) end

Parameters:

  • entityId (integer)
  • data (table)

Returns:

Method: addComponentModel

lua
function Scene:addComponentModel(
    entityId,
    data
) end

Parameters:

  • entityId (integer)
  • data (table)

Returns:

Method: addComponentNetwork

lua
function Scene:addComponentNetwork(
    entityId,
    data
) end

Parameters:

  • entityId (integer)
  • data (table)

Returns:

Method: addComponentPathfinding

lua
function Scene:addComponentPathfinding(
    entityId,
    data
) end

Parameters:

  • entityId (integer)
  • data (table)

Returns:

Method: addComponentPlayerControl

lua
function Scene:addComponentPlayerControl(
    entityId,
    data
) end

Parameters:

  • entityId (integer)
  • data (table)

Returns:

Method: addComponentRigidBody

lua
function Scene:addComponentRigidBody(
    entityId,
    data
) end

Parameters:

  • entityId (integer)
  • data (table)

Returns:

Method: addComponentRigidBody

lua
function Scene:addComponentRigidBody(
    entityId,
    data
) end

Parameters:

  • entityId (integer)
  • data (table)

Returns:

Method: addComponentShip

lua
function Scene:addComponentShip(
    entityId,
    data
) end

Parameters:

  • entityId (integer)
  • data (table)

Returns:

Method: addComponentTransform

lua
function Scene:addComponentTransform(
    entityId
) end

Parameters:

  • entityId (integer)

Returns:

Method: createEntity

lua
function Scene:createEntity() end

Returns:

  • integer - new entity ID

Method: getComponentBounds

lua
function Scene:getComponentBounds(
    entityId
) end

Parameters:

  • entityId (integer)

Returns:

Method: getComponentCollisionShape

lua
function Scene:getComponentCollisionShape(
    entityId
) end

Parameters:

  • entityId (integer)

Returns:

Method: getComponentGrid

lua
function Scene:getComponentGrid(
    entityId
) end

Parameters:

  • entityId (integer)

Returns:

Method: getComponentIcon

lua
function Scene:getComponentIcon(
    entityId
) end

Parameters:

  • entityId (integer)

Returns:

Method: getComponentLabel

lua
function Scene:getComponentLabel(
    entityId
) end

Parameters:

  • entityId (integer)

Returns:

Method: getComponentModel

lua
function Scene:getComponentModel(
    entityId
) end

Parameters:

  • entityId (integer)

Returns:

Method: getComponentNetwork

lua
function Scene:getComponentNetwork(
    entityId
) end

Parameters:

  • entityId (integer)

Returns:

Method: getComponentPathfinding

lua
function Scene:getComponentPathfinding(
    entityId
) end

Parameters:

  • entityId (integer)

Returns:

Method: getComponentPlayerControl

lua
function Scene:getComponentPlayerControl(
    entityId
) end

Parameters:

  • entityId (integer)

Returns:

Method: getComponentRigidBody

lua
function Scene:getComponentRigidBody(
    entityId
) end

Parameters:

  • entityId (integer)

Returns:

Method: getComponentRigidBody

lua
function Scene:getComponentRigidBody(
    entityId
) end

Parameters:

  • entityId (integer)

Returns:

Method: getComponentShip

lua
function Scene:getComponentShip(
    entityId
) end

Parameters:

  • entityId (integer)

Returns:

Method: getComponentTransform

lua
function Scene:getComponentTransform(
    entityId
) end

Parameters:

  • entityId (integer)

Returns:

Method: patchComponentBounds

lua
function Scene:patchComponentBounds(
    entityId
) end

Parameters:

  • entityId (integer)

Method: patchComponentCollisionShape

lua
function Scene:patchComponentCollisionShape(
    entityId
) end

Parameters:

  • entityId (integer)

Method: patchComponentGrid

lua
function Scene:patchComponentGrid(
    entityId
) end

Parameters:

  • entityId (integer)

Method: patchComponentIcon

lua
function Scene:patchComponentIcon(
    entityId
) end

Parameters:

  • entityId (integer)

Method: patchComponentLabel

lua
function Scene:patchComponentLabel(
    entityId
) end

Parameters:

  • entityId (integer)

Method: patchComponentModel

lua
function Scene:patchComponentModel(
    entityId
) end

Parameters:

  • entityId (integer)

Method: patchComponentNetwork

lua
function Scene:patchComponentNetwork(
    entityId
) end

Parameters:

  • entityId (integer)

Method: patchComponentPathfinding

lua
function Scene:patchComponentPathfinding(
    entityId
) end

Parameters:

  • entityId (integer)

Method: patchComponentPlayerControl

lua
function Scene:patchComponentPlayerControl(
    entityId
) end

Parameters:

  • entityId (integer)

Method: patchComponentRigidBody

lua
function Scene:patchComponentRigidBody(
    entityId
) end

Parameters:

  • entityId (integer)

Method: patchComponentRigidBody

lua
function Scene:patchComponentRigidBody(
    entityId
) end

Parameters:

  • entityId (integer)

Method: patchComponentShip

lua
function Scene:patchComponentShip(
    entityId
) end

Parameters:

  • entityId (integer)

Method: patchComponentTransform

lua
function Scene:patchComponentTransform(
    entityId
) end

Parameters:

  • entityId (integer)

Method: removeEntity

lua
function Scene:removeEntity(
    entityId
) end

Parameters:

  • entityId (integer)

Field declarations

Field: physics

Type: PhysicsDynamicsWorld