3#include <Math/TVector3.h>
4#include <Math/TQuaternion.h>
5#include <Math/Transform/TDecomposedTransform.h>
6#include <Common/primitive_type.h>
7#include <SDL/sdl_interface.h>
9namespace ph::math {
class StaticAffineTransform; }
10namespace ph::math {
class StaticRigidTransform; }
34 math::Vector3R
getPos()
const;
35 math::QuaternionR
getRot()
const;
47 math::QuaternionR m_rot;
48 math::Vector3R m_scale;
53 StructType ztruct(
"obj-transform");
54 ztruct.description(
"Data structure describing placement of an object in the virtual world.");
56 TSdlVector3<OwnerType> pos(
"pos", &OwnerType::m_pos);
57 pos.description(
"Position of the object.");
59 pos.defaultTo({0, 0, 0});
62 TSdlQuaternion<OwnerType> rot(
"rot", &OwnerType::m_rot);
63 rot.description(
"Rotation of the object");
65 rot.defaultTo(math::QuaternionR::makeNoRotation());
68 TSdlVector3<OwnerType>
scale(
"scale", &OwnerType::m_scale);
69 scale.description(
"Scale of the object.");
71 scale.defaultTo({1, 1, 1});
72 ztruct.addField(
scale);
Definition ph_editor.h:10
Definition ObjectTransform.h:9