From 5444f2828b6e1cc2e2e138091ee7d2490a66851f Mon Sep 17 00:00:00 2001 From: Robert Dorn Date: Fri, 20 Dec 2024 10:25:23 +0100 Subject: [PATCH] changed activeCamera.rotationQuaternion to activeCamera.absoluteRotation --- src/BasicBehaveEngine/decorators/BabylonDecorator.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/BasicBehaveEngine/decorators/BabylonDecorator.ts b/src/BasicBehaveEngine/decorators/BabylonDecorator.ts index 851a021..0f44c04 100644 --- a/src/BasicBehaveEngine/decorators/BabylonDecorator.ts +++ b/src/BasicBehaveEngine/decorators/BabylonDecorator.ts @@ -276,7 +276,7 @@ export class BabylonDecorator extends ADecorator { return [NaN, NaN, NaN, NaN] } - return [activeCamera.rotationQuaternion.w, activeCamera.rotationQuaternion.x, activeCamera.rotationQuaternion.y, activeCamera.rotationQuaternion.z] + return [activeCamera.absoluteRotation.w, activeCamera.absoluteRotation.x, activeCamera.absoluteRotation.y, activeCamera.absoluteRotation.z] }, (path, value) => { //no-op }, "float4", true)