change transform order for relative setPosition to SRT

This commit is contained in:
Nick Fisher
2024-02-05 08:43:54 +08:00
parent 48a1c6dc0b
commit 6561af6825
3 changed files with 7 additions and 3 deletions

View File

@@ -73,7 +73,7 @@ class EntityTransformController {
updateTranslation = true;
}
// todo - better to use pitch/yaw/roll
// TODO - use pitch/yaw/roll
bool updateRotation = false;
var _rotation = v.Quaternion.identity();
@@ -92,7 +92,6 @@ class EntityTransformController {
relative: true);
}
if (updateRotation) {
var axis = _rotation.axis;
await controller.setRotationQuat(_entity, _rotation, relative: true);
}
}