|
@@ -52,22 +52,22 @@ public:
|
|
|
void setLocalTransform(const Transform& x)
|
|
void setLocalTransform(const Transform& x)
|
|
|
{
|
|
{
|
|
|
lTrf = x;
|
|
lTrf = x;
|
|
|
- movableMarkUpdated();
|
|
|
|
|
|
|
+ movableMarkForUpdate();
|
|
|
}
|
|
}
|
|
|
void setLocalTranslation(const Vec3& x)
|
|
void setLocalTranslation(const Vec3& x)
|
|
|
{
|
|
{
|
|
|
lTrf.setOrigin(x);
|
|
lTrf.setOrigin(x);
|
|
|
- movableMarkUpdated();
|
|
|
|
|
|
|
+ movableMarkForUpdate();
|
|
|
}
|
|
}
|
|
|
void setLocalRotation(const Mat3& x)
|
|
void setLocalRotation(const Mat3& x)
|
|
|
{
|
|
{
|
|
|
lTrf.setRotation(x);
|
|
lTrf.setRotation(x);
|
|
|
- movableMarkUpdated();
|
|
|
|
|
|
|
+ movableMarkForUpdate();
|
|
|
}
|
|
}
|
|
|
void setLocalScale(F32 x)
|
|
void setLocalScale(F32 x)
|
|
|
{
|
|
{
|
|
|
lTrf.setScale(x);
|
|
lTrf.setScale(x);
|
|
|
- movableMarkUpdated();
|
|
|
|
|
|
|
+ movableMarkForUpdate();
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
const Transform& getWorldTransform() const
|
|
const Transform& getWorldTransform() const
|
|
@@ -91,40 +91,40 @@ public:
|
|
|
void rotateLocalX(F32 angDegrees)
|
|
void rotateLocalX(F32 angDegrees)
|
|
|
{
|
|
{
|
|
|
lTrf.getRotation().rotateXAxis(angDegrees);
|
|
lTrf.getRotation().rotateXAxis(angDegrees);
|
|
|
- movableMarkUpdated();
|
|
|
|
|
|
|
+ movableMarkForUpdate();
|
|
|
}
|
|
}
|
|
|
void rotateLocalY(F32 angDegrees)
|
|
void rotateLocalY(F32 angDegrees)
|
|
|
{
|
|
{
|
|
|
lTrf.getRotation().rotateYAxis(angDegrees);
|
|
lTrf.getRotation().rotateYAxis(angDegrees);
|
|
|
- movableMarkUpdated();
|
|
|
|
|
|
|
+ movableMarkForUpdate();
|
|
|
}
|
|
}
|
|
|
void rotateLocalZ(F32 angDegrees)
|
|
void rotateLocalZ(F32 angDegrees)
|
|
|
{
|
|
{
|
|
|
lTrf.getRotation().rotateZAxis(angDegrees);
|
|
lTrf.getRotation().rotateZAxis(angDegrees);
|
|
|
- movableMarkUpdated();
|
|
|
|
|
|
|
+ movableMarkForUpdate();
|
|
|
}
|
|
}
|
|
|
void moveLocalX(F32 distance)
|
|
void moveLocalX(F32 distance)
|
|
|
{
|
|
{
|
|
|
Vec3 x_axis = lTrf.getRotation().getColumn(0);
|
|
Vec3 x_axis = lTrf.getRotation().getColumn(0);
|
|
|
lTrf.getOrigin() += x_axis * distance;
|
|
lTrf.getOrigin() += x_axis * distance;
|
|
|
- movableMarkUpdated();
|
|
|
|
|
|
|
+ movableMarkForUpdate();
|
|
|
}
|
|
}
|
|
|
void moveLocalY(F32 distance)
|
|
void moveLocalY(F32 distance)
|
|
|
{
|
|
{
|
|
|
Vec3 y_axis = lTrf.getRotation().getColumn(1);
|
|
Vec3 y_axis = lTrf.getRotation().getColumn(1);
|
|
|
lTrf.getOrigin() += y_axis * distance;
|
|
lTrf.getOrigin() += y_axis * distance;
|
|
|
- movableMarkUpdated();
|
|
|
|
|
|
|
+ movableMarkForUpdate();
|
|
|
}
|
|
}
|
|
|
void moveLocalZ(F32 distance)
|
|
void moveLocalZ(F32 distance)
|
|
|
{
|
|
{
|
|
|
Vec3 z_axis = lTrf.getRotation().getColumn(2);
|
|
Vec3 z_axis = lTrf.getRotation().getColumn(2);
|
|
|
lTrf.getOrigin() += z_axis * distance;
|
|
lTrf.getOrigin() += z_axis * distance;
|
|
|
- movableMarkUpdated();
|
|
|
|
|
|
|
+ movableMarkForUpdate();
|
|
|
}
|
|
}
|
|
|
void scale(F32 s)
|
|
void scale(F32 s)
|
|
|
{
|
|
{
|
|
|
lTrf.getScale() *= s;
|
|
lTrf.getScale() *= s;
|
|
|
- movableMarkUpdated();
|
|
|
|
|
|
|
+ movableMarkForUpdate();
|
|
|
}
|
|
}
|
|
|
/// @}
|
|
/// @}
|
|
|
|
|
|
|
@@ -158,7 +158,7 @@ protected:
|
|
|
/// is true. Then it moves to the children.
|
|
/// is true. Then it moves to the children.
|
|
|
void updateWorldTransform();
|
|
void updateWorldTransform();
|
|
|
|
|
|
|
|
- void movableMarkUpdated()
|
|
|
|
|
|
|
+ void movableMarkForUpdate()
|
|
|
{
|
|
{
|
|
|
timestamp = Timestamp::getTimestamp();
|
|
timestamp = Timestamp::getTimestamp();
|
|
|
enableFlags(MF_TRANSFORM_DIRTY);
|
|
enableFlags(MF_TRANSFORM_DIRTY);
|