Chicane

Transformable

Header
Chicane/Game/Transformable/Instance.hpp
Namespace
Chicane::Transformable

Movable objects that live inside the level.

Constructors

ModifierNameDescription
Transformable()

Functions

AccessModifierTypeNameDescription
publicconst Vec<3, float>&getTranslation()
publicvoidsetRelativeTranslation(const Vec<3, float>& inTranslation)
publicvoidsetAbsoluteTranslation(const Vec<3, float>& inTranslation)
publicconst Vec<3, float>&getRotation()
publicvoidsetRelativeRotation(const Vec<3, float>& inRotation)
publicvoidsetAbsoluteRotation(const Vec<3, float>& inRotation)
publicconst Vec<3, float>&getScale()
publicvoidsetRelativeScale(const Vec<3, float>& inScale)
publicvoidsetAbsoluteScale(const Vec<3, float>& inScale)
publicconst Transform&getTransform()
publicconst Mat<4, float>&getPosition()
publicconst Quat<float>&getOrientation()
publicconst Vec<3, float>&getForward()
publicconst Vec<3, float>&getRight()
publicconst Vec<3, float>&getUp()
publicconst Vec<3, float>&getTop()
publicconst Vec<3, float>&getCenter()
publicconst Vec<3, float>&getOrigin()
publicconst Vec<3, float>&getExtent()
publicconst Bounds&getBounds()
publicvoidrefreshBounds()
publicvoidsetBounds(const Bounds& inBounds)
publicSubscription<const Transform&>*watchTransform(std::function<void (const Transform&)> inNext, std::function<void (const std::string&)> inError, std::function<void ()> inComplete)
protectedvoidsetTranslation(const Vec<3, float>& inTranslation)
protectedvoidsetRotation(const Vec<3, float>& inRotation)
protectedvoidsetScale(const Vec<3, float>& inScale)

Properties

AccessModifierTypeNameDescription
protectedTransformm_transform
protectedMat<4, float>m_position
protectedDirectionm_direction
protectedQuat<float>m_orientation
protectedBoundsm_baseBounds
protectedBoundsm_currentBounds
protectedstd::unique_ptr<Observable<const Transform&>>m_transformObservable