EntityComponentSystemSamples icon indicating copy to clipboard operation
EntityComponentSystemSamples copied to clipboard

Why use Set Inertia Inverse Behavior script? Cannot we set infinity to Inertia Tensor?

Open forno opened this issue 5 years ago • 2 comments

I know that the Inertia Inverse values are inverse of each Inertia Tensor value.

We can lock angular with the infinity value of Inertia Tensor without other scripts. To lock Cube's x and z, we just enter [infinity, 0.5, infinity] to Inertia Tensor.

I see correct work with Unity Physics 0.2.5-preview0 and 0.2.5-preview1.

It is better than SetInertiaInverseBehaviour scripts.

Do you have a belief to use SetInertiaInverseBehaviour? I propose to delete it and replace Inertia Tensor with infinity.

forno avatar Jan 31 '20 15:01 forno

I prefer if we directly added an equivalent of the Freeze Position/Rotation X, Y, Z options to the Unity.Physics package instead.

I also agree that the inertia tensor diagonally isn't particularly intuitive to set. The current XYZ should maybe be changed represent a scale factor for the calculated value?

carpetbagger avatar Feb 01 '20 19:02 carpetbagger