o3de / o3de-extras

Other
58 stars 60 forks source link

don't use scale in MVP calculation for sensors #677

Closed jhanca-robotecai closed 3 months ago

jhanca-robotecai commented 3 months ago

What does this PR do?

Fixes #674.

AZ::Transform contains translation, rotation, and scale. When calculating MVP for lidar sensor and camera sensor we only care about translation and rotation, hence the scale should be ignored.

How was this PR tested?

A robot was scaled up and down, the camera outputs were compared.

Screenshot from 2024-03-12 12-42-56 Screenshot from 2024-03-12 12-43-30