Functions¶
PhysicsJolt/Utility
Brief descriptions¶
Functions |
|
Translates Nau Engine vector3 to Jolt vector3. |
|
Translates Nau Engine quaternion to Jolt quaternion. |
|
Translates Jolt vector4 to Nau Engine vector4. |
|
Translates Jolt vector3 to Nau Engine vector3. |
|
Translates Jolt matrix4x4 to Nau Engine matrix4x4. |
|
Translates Jolt color to Nau Engine color. |
Detailed information¶
physics::jolt::vec3ToJolt¶
engine/core/modules/physicsJolt/include/nau/physics/jolt/jolt_physics_math.h
-
JPH::Vec3 nau::physics::jolt::vec3ToJolt(math::vec3 nauV)¶
Translates Nau Engine vector3 to Jolt vector3.
- Parameters:
nauV – [in] Nau Engine vector.
- Returns:
Jolt vector.
physics::jolt::quatToJolt¶
engine/core/modules/physicsJolt/include/nau/physics/jolt/jolt_physics_math.h
-
JPH::Quat nau::physics::jolt::quatToJolt(math::quat nauQ)¶
Translates Nau Engine quaternion to Jolt quaternion.
- Parameters:
nauQ – [in] Nau Engine quaternion.
- Returns:
Jolt quaternion.
physics::jolt::joltVec4ToNauVec4¶
engine/core/modules/physicsJolt/include/nau/physics/jolt/jolt_physics_math.h
-
math::vec4 nau::physics::jolt::joltVec4ToNauVec4(JPH::Vec4Arg joltVec)¶
Translates Jolt vector4 to Nau Engine vector4.
- Parameters:
joltVec – [in] Jolt vector.
- Returns:
Nau Engine vector.
physics::jolt::joltVec3ToNauVec3¶
engine/core/modules/physicsJolt/include/nau/physics/jolt/jolt_physics_math.h
-
math::vec3 nau::physics::jolt::joltVec3ToNauVec3(JPH::Vec3Arg joltVec)¶
Translates Jolt vector3 to Nau Engine vector3.
- Parameters:
joltVec – [in] Jolt vector.
- Returns:
Nau Engine vector.
physics::jolt::joltMatToNauMat¶
engine/core/modules/physicsJolt/include/nau/physics/jolt/jolt_physics_math.h
-
math::mat4 nau::physics::jolt::joltMatToNauMat(JPH::Mat44Arg joltMat)¶
Translates Jolt matrix4x4 to Nau Engine matrix4x4.
- Parameters:
joltMat – [in] Jolt matrix.
- Returns:
Nau Engine matrix.
physics::jolt::joltColorToNauColor4¶
engine/core/modules/physicsJolt/include/nau/physics/jolt/jolt_physics_math.h
-
math::Color4 nau::physics::jolt::joltColorToNauColor4(JPH::Color joltColor)¶
Translates Jolt color to Nau Engine color.
- Parameters:
joltColor – [in] Jolt color.
- Returns:
Nau Engine color.