o3de / o3de-extras

Other
58 stars 60 forks source link

ROS 2 Gem: Camera renders in incorrect position when parent scale is different than 1 #674

Closed pijaro closed 3 months ago

pijaro commented 4 months ago

Describe the bug When the parent entity has scale != 1, then the camera entity seems to render from some invalid position.

Assets required None

Steps to reproduce Change the scale of the base_link in the test robot (ie. from the ROS 2 robot template), and leave the camera entity scale intact. (also check the non-zero positions for the sensor)

Expected behavior Camera renders correctly from the point where it is.

Actual behavior Camera renders from invalid position.

Screenshots/Video TBD

Additional context You can workaround this issue with scaling the sensor entity proportionally to the parent scale: scale = 1/<scale_of_the_parent>