Search Issue Tracker

Active

Under Consideration for 6000.6.X

Votes

0

Found in

6000.0.69f1

6000.3.11f1

6000.4.0b11

6000.5.0a8

6000.6.0a1

Issue ID

UUM-138406

Regression

No

Inconsistent value calculations between Operating Systems when casting rigidbody.transform.localScale = Vector3.zero

Scripting Runtime

-

How to reproduce:
1. Open the attached “IN-138602.zip” Project
2. Open the “SampleScene”
3. Enter Play Mode
4. Observe the Console Window

Actual result: “transform.localScale = Vector3.zero” throws a “NaN” value
Expected result: “transform.localScale = Vector3.zero” shows 0 as the value

Reproducible with: 6000.0.72f1, 6000.3.12f1, 6000.4.1f1, 6000.5.0b2, 6000.6.0a2

Reproducible on: macOS Unity Editor 26.3.1 (M3 Pro), macOS Standalone Player, Android Player
Not reproducible on: Windows Unity Editor, Windows Standalone Player

Note: Related Discussions Thread - https://discussions.unity.com/t/nan-in-rigidbody-position/1714445

Add comment

Log in to post comment

All about bugs

View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.