Skip to content

Conversation

@capdevon
Copy link
Contributor

@capdevon capdevon commented May 22, 2025

New static methods:

  • insideUnitCircle(): Returns a random point inside or on a circle with radius 1.0
  • insideUnitSphere(): Returns a random point inside or on a sphere with radius 1.0
  • onUnitSphere(): Returns a random point on the surface of a sphere with radius 1.0
  • nextRandomFloat(float min, float max): Returns a random float within [minInclusive..maxInclusive]

From Unity API:
https://docs.unity3d.com/6000.0/Documentation/ScriptReference/Random.html

these features are incredibly useful and widely used in Unity demos

add Test class
image

@yaRnMcDonuts yaRnMcDonuts added this to the v3.9.0 milestone May 23, 2025
@yaRnMcDonuts yaRnMcDonuts merged commit b7f1118 into jMonkeyEngine:master May 28, 2025
16 checks passed
@capdevon capdevon deleted the capdevon-FastMath branch June 15, 2025 22:39
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