1
0
mirror of https://github.com/oliverbooth/VpSharp synced 2024-11-23 00:28:48 +00:00

Use double-precision overload of ToAxisAngle

This commit is contained in:
Oliver Booth 2022-12-05 15:20:26 +00:00
parent bac905e742
commit 8c4ed9d955
No known key found for this signature in database
GPG Key ID: 32A00B35503AF634

View File

@ -176,7 +176,7 @@ public abstract class VirtualParadiseObjectBuilder
} }
else else
{ {
TargetObject.Location.Rotation.ToAxisAngle(out Vector3 axis, out float angle); TargetObject.Location.Rotation.ToAxisAngle(out Vector3d axis, out double angle);
_ = vp_double_set(handle, ObjectRotationX, axis.X); _ = vp_double_set(handle, ObjectRotationX, axis.X);
_ = vp_double_set(handle, ObjectRotationY, axis.Y); _ = vp_double_set(handle, ObjectRotationY, axis.Y);
_ = vp_double_set(handle, ObjectRotationZ, axis.Z); _ = vp_double_set(handle, ObjectRotationZ, axis.Z);