Documentation ¶
Index ¶
- type Transform
- func (t Transform) GetID() string
- func (t *Transform) GetLayer() float64
- func (t *Transform) GetLocalLayer() float64
- func (t *Transform) GetLocalPosition() *vector2.Vector2
- func (t *Transform) GetLocalRotation() float64
- func (t *Transform) GetLocalScale() *vector2.Vector2
- func (t *Transform) GetParent() interfaces.ITransform
- func (t *Transform) GetPosition() *vector2.Vector2
- func (t *Transform) GetRotation() float64
- func (t *Transform) GetScale() *vector2.Vector2
- func (t *Transform) SetLayer(layer float64)
- func (t *Transform) SetLocalLayer(layer float64)
- func (t *Transform) SetLocalPosition(pos *vector2.Vector2)
- func (t *Transform) SetLocalRotation(rot float64)
- func (t *Transform) SetLocalScale(scale *vector2.Vector2)
- func (t *Transform) SetParent(parent interfaces.ITransform)
- func (t *Transform) SetPosition(pos *vector2.Vector2)
- func (t *Transform) SetRotation(rot float64)
- func (t *Transform) SetScale(scale *vector2.Vector2)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Transform ¶
type Transform struct {
// contains filtered or unexported fields
}
Transform implements ITransform interface. Do not use Transform directly! Use interface instead of. Do not change or get values directly.
This component does not need to be added to the GetComponents() function!
func (*Transform) GetLocalLayer ¶
Returns the local position of the object.
func (*Transform) GetLocalPosition ¶
Returns the local position of the object.
func (*Transform) GetLocalRotation ¶
Returns the local rotation of the object.
func (*Transform) GetLocalScale ¶
Returns the local scale of the object.
func (*Transform) GetParent ¶
func (t *Transform) GetParent() interfaces.ITransform
Returns parent of the object. If there is no parent, nil will be returned.
func (*Transform) GetPosition ¶
Returns current position of the object.
func (*Transform) GetRotation ¶
Returns rotation of the object.
func (*Transform) SetLayer ¶
Changes displaying layer of the object. This also known as Z coordinate.
func (*Transform) SetLocalLayer ¶
Changes a local displaying layer of the object. This also known as Z coordinate.
func (*Transform) SetLocalPosition ¶
Changes a local position of the object.
func (*Transform) SetLocalRotation ¶
Changes a local rotation of the object.
func (*Transform) SetLocalScale ¶
Changes a local scale of the object.
func (*Transform) SetParent ¶
func (t *Transform) SetParent(parent interfaces.ITransform)
Changes parent of the transform.
func (*Transform) SetPosition ¶
Changes current position of the object.
func (*Transform) SetRotation ¶
Changes rotation of the object.