mirror of
https://github.com/hanetzer/sdraw_mods_cvr.git
synced 2025-09-03 10:29:22 +00:00
Transformation fixes
More checks for non-flying worlds
This commit is contained in:
parent
9159946de6
commit
732b15a6a9
9 changed files with 43 additions and 35 deletions
|
@ -133,13 +133,9 @@ namespace ml_pam
|
|||
if(PlayerSetup.Instance._animator.isHuman)
|
||||
{
|
||||
Vector3 l_hipsPos = Vector3.zero;
|
||||
Quaternion l_hipsRot = Quaternion.identity;
|
||||
Transform l_hips = PlayerSetup.Instance._animator.GetBoneTransform(HumanBodyBones.Hips);
|
||||
if(l_hips != null)
|
||||
{
|
||||
l_hipsPos = l_hips.localPosition;
|
||||
l_hipsRot = l_hips.localRotation;
|
||||
}
|
||||
|
||||
HumanPose l_currentPose = new HumanPose();
|
||||
HumanPoseHandler l_poseHandler = null;
|
||||
|
@ -201,10 +197,7 @@ namespace ml_pam
|
|||
l_poseHandler?.Dispose();
|
||||
|
||||
if(l_hips != null)
|
||||
{
|
||||
l_hips.localPosition = l_hipsPos;
|
||||
l_hips.localRotation = l_hipsRot;
|
||||
}
|
||||
}
|
||||
|
||||
if(m_enabled)
|
||||
|
|
|
@ -1,10 +1,10 @@
|
|||
using System.Reflection;
|
||||
|
||||
[assembly: AssemblyTitle("PickupArmMovement")]
|
||||
[assembly: AssemblyVersion("1.0.4")]
|
||||
[assembly: AssemblyFileVersion("1.0.4")]
|
||||
[assembly: AssemblyVersion("1.0.5")]
|
||||
[assembly: AssemblyFileVersion("1.0.5")]
|
||||
|
||||
[assembly: MelonLoader.MelonInfo(typeof(ml_pam.PickupArmMovement), "PickupArmMovement", "1.0.4", "SDraw", "https://github.com/SDraw/ml_mods_cvr")]
|
||||
[assembly: MelonLoader.MelonInfo(typeof(ml_pam.PickupArmMovement), "PickupArmMovement", "1.0.5", "SDraw", "https://github.com/SDraw/ml_mods_cvr")]
|
||||
[assembly: MelonLoader.MelonGame(null, "ChilloutVR")]
|
||||
[assembly: MelonLoader.MelonPriority(1)]
|
||||
[assembly: MelonLoader.MelonPlatform(MelonLoader.MelonPlatformAttribute.CompatiblePlatforms.WINDOWS_X64)]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue