Search Issue Tracker
Fixed in 5.2.0
Votes
1
Found in
4.3.0f4
Issue ID
576941
Regression
No
SmoothDamp example in the documentation is incorrect
Correct example:
Current SmoothDamp Documentation:
<file://localhost/Applications/Unity/Unity.app/Contents/Documentation/html/en/ScriptReference/Mathf.SmoothDamp.html>
public Transform <Transform.html> target;
public float smoothTime = 0.3F;
private float yVelocity = 0.0F;
void Update() {
float newPosition = Mathf.SmoothDamp
<Mathf.SmoothDamp.html>(transform.position.y, target.position.y, ref
yVelocity, smoothTime);
transform.position = new Vector3
<Vector3.html>(transform.position.x, newPosition,
transform.position.z);
}
(also full script attached in a user response)
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- Standalone Player crashes with "TDerived GetOrLoad<TDerived>() where TDerived : T" when IL2CPP Code generation is set to "Faster (smaller) Builds"
- IndexOutOfRangeException and InvalidOperationException when logging XML string
- Script missing in "Assets/Settings/Mobile_Renderer/GlobalVolumeFeature" of "com.unity.template.urp-blank" template
- “Font Asset Creator - Error Code [Invalid_File_Structure]…“ error is logged when generating Font Assets from fonts with meta files from previous Editor versions
- Input.mousePosition returns (NaN, NaN, 0.00) when Scene view is opened
Add comment