Skip to content

Fix Lidar output being affected by the gameobject's scale. - #210

Merged
RyodoTanaka merged 1 commit into
Field-Robotics-Japan:masterfrom
Sh1co:Lidar-Scale-Decoupling
May 5, 2026
Merged

Fix Lidar output being affected by the gameobject's scale.#210
RyodoTanaka merged 1 commit into
Field-Robotics-Japan:masterfrom
Sh1co:Lidar-Scale-Decoupling

Conversation

@Sh1co

@Sh1co Sh1co commented Apr 9, 2026

Copy link
Copy Markdown
Contributor

Hello!

The current LiDAR output is affected by scale changes of the GameObject because the direction is multiplied by transform.localToWorldMatrix, which applies both rotation and scale.

This change uses only the rotation component, preventing scale from affecting the direction.

Thanks for the great library. We use it in our own project and came across this issue.

@RyodoTanaka
RyodoTanaka self-requested a review May 5, 2026 05:59

@RyodoTanaka RyodoTanaka left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@RyodoTanaka
RyodoTanaka merged commit 3d28e79 into Field-Robotics-Japan:master May 5, 2026
0 of 2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants