Skip to content

IMU acceleration is affected by scale #55

@sgrsn

Description

@sgrsn

In IMU calculations, Transform.InverseTransformVector is used to add gravity to acceleration, but this function is scale sensitive, so if the object's scale is changed, the acceleration values will not be calculated correctly.

If the scale is set to 1, there is no problem.
image

If the scale is changed to 0.1, the gravity of the corresponding axis is calculated as 10 times.
image

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions