Skip to content

Commit

Permalink
changed activeCamera.rotationQuaternion to activeCamera.absoluteRotation
Browse files Browse the repository at this point in the history
  • Loading branch information
pfcDorn committed Dec 20, 2024
1 parent 795668d commit 5444f28
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/BasicBehaveEngine/decorators/BabylonDecorator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 5444f28

Please sign in to comment.