View on GitHub

3DreamEngine

3DreamEngine is an *awesome* 3d engine for LÖVE.

Position

Extends Clonable, IsNamed

New position, mostly used internally for objects marked with the POS tag.

Constructors

Position:newPosition(position, size, value)

Arguments

position (Vec3)

size (number)

value (string)

Returns

(Position)


Methods

Position:setPosition(position)

Arguments

position (Vec3)


Position:getPosition()

Returns

(Vec3)


Position:setValue(value)

Arguments

value (string)


Position:getValue()

Returns

(string) the value passed with the tag while loading


Position:setSize(size)

Arguments

size (number)


Position:getSize()

Returns

(number)


Clonable:clone()

Slow and deep clone


Clonable:instance()

Creates an fast instance


IsNamed:setName(name)

A name has no influence other than being able to print more nicely

Arguments

name (string)


IsNamed:getName()

Gets the name, or “unnamed”

Returns

(string)