Skip to content

Conversation

@NicoIer
Copy link

@NicoIer NicoIer commented Jun 5, 2025

…me types.

NicoIer added 12 commits June 5, 2025 11:42
Introduced implicit conversions for rvec3 (from UnityEngine.Vector3), BodyID (to/from uint), and Shape (from PlaneShape). Added constructors for BodyID (from uint) and SphereShape (from float radius). Marked some methods as readonly for improved immutability and clarity.
Changed JPH_BodyInterface_GetBodyType to return BodyType instead of bool and updated its implementation to call the correct UnsafeBindings method.
Added implicit operators to convert rvec3 to and from System.Numerics.Vector3 and UnityEngine.Vector3. This improves interoperability between rvec3 and common vector types in .NET and Unity.
Introduced a new 'subType' property to the Shape class with aggressive inlining for improved performance. This provides an alternative to the existing GetSubType() method.
Grants the JoltWrapper assembly access to internal members of the Jolt namespace by adding an InternalsVisibleTo attribute.
The GetPosition method in BodyInterface is now marked as readonly, indicating it does not modify the state of the struct. This can improve code clarity and enable certain compiler optimizations.
Changed the return type of GetBodyType from bool to BodyType to match the expected return value from the underlying binding.
Introduced a gravity property to PhysicsSystem for easier access and assignment. Added InvalidBodyID constant to BodyID for invalid ID representation. Implemented implicit conversion from ObjectLayer to uint for convenience.
@RoboNET
Copy link

RoboNET commented Oct 10, 2025

Currently, the library doesn't work on MacOS, as it only has a 64-bit version. Merging this PR will solve this problem.

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