Movable objects that live inside the level.
Constructors
Modifier | Name | Description |
---|
| Transformable() | |
Functions
Access | Modifier | Type | Name | Description |
---|
public | | const Vec<3, float>& | getTranslation() | |
public | | void | setRelativeTranslation(const Vec<3, float>& inTranslation) | |
public | | void | setAbsoluteTranslation(const Vec<3, float>& inTranslation) | |
public | | const Vec<3, float>& | getRotation() | |
public | | void | setRelativeRotation(const Vec<3, float>& inRotation) | |
public | | void | setAbsoluteRotation(const Vec<3, float>& inRotation) | |
public | | const Vec<3, float>& | getScale() | |
public | | void | setRelativeScale(const Vec<3, float>& inScale) | |
public | | void | setAbsoluteScale(const Vec<3, float>& inScale) | |
public | | const Transform& | getTransform() | |
public | | const Mat<4, float>& | getPosition() | |
public | | const Quat<float>& | getOrientation() | |
public | | const Vec<3, float>& | getForward() | |
public | | const Vec<3, float>& | getRight() | |
public | | const Vec<3, float>& | getUp() | |
public | | const Vec<3, float>& | getTop() | |
public | | const Vec<3, float>& | getCenter() | |
public | | const Vec<3, float>& | getOrigin() | |
public | | const Vec<3, float>& | getExtent() | |
public | | const Bounds& | getBounds() | |
public | | void | refreshBounds() | |
public | | void | setBounds(const Bounds& inBounds) | |
public | | Subscription<const Transform&>* | watchTransform(std::function<void (const Transform&)> inNext, std::function<void (const std::string&)> inError, std::function<void ()> inComplete) | |
protected | | void | setTranslation(const Vec<3, float>& inTranslation) | |
protected | | void | setRotation(const Vec<3, float>& inRotation) | |
protected | | void | setScale(const Vec<3, float>& inScale) | |
Properties
Access | Modifier | Type | Name | Description |
---|
protected | | Transform | m_transform | |
protected | | Mat<4, float> | m_position | |
protected | | Direction | m_direction | |
protected | | Quat<float> | m_orientation | |
protected | | Bounds | m_baseBounds | |
protected | | Bounds | m_currentBounds | |
protected | | std::unique_ptr<Observable<const Transform&>> | m_transformObservable | |