mirror of
https://github.com/hanetzer/sdraw_mods_cvr.git
synced 2025-09-03 18:39:23 +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
|
@ -233,13 +233,9 @@ namespace ml_lme
|
|||
if(PlayerSetup.Instance._animator.isHuman)
|
||||
{
|
||||
Vector3 l_hipsPos = Vector3.zero;
|
||||
Quaternion l_hipsRot = Quaternion.identity;
|
||||
m_hips = PlayerSetup.Instance._animator.GetBoneTransform(HumanBodyBones.Hips);
|
||||
if(m_hips != null)
|
||||
{
|
||||
l_hipsPos = m_hips.localPosition;
|
||||
l_hipsRot = m_hips.localRotation;
|
||||
}
|
||||
|
||||
if(!m_inVR)
|
||||
{
|
||||
|
@ -317,10 +313,7 @@ namespace ml_lme
|
|||
}
|
||||
|
||||
if(m_hips != null)
|
||||
{
|
||||
m_hips.localPosition = l_hipsPos;
|
||||
m_hips.localRotation = l_hipsRot;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -1,10 +1,10 @@
|
|||
using System.Reflection;
|
||||
|
||||
[assembly: AssemblyTitle("LeapMotionExtension")]
|
||||
[assembly: AssemblyVersion("1.3.6")]
|
||||
[assembly: AssemblyFileVersion("1.3.6")]
|
||||
[assembly: AssemblyVersion("1.3.7")]
|
||||
[assembly: AssemblyFileVersion("1.3.7")]
|
||||
|
||||
[assembly: MelonLoader.MelonInfo(typeof(ml_lme.LeapMotionExtension), "LeapMotionExtension", "1.3.6", "SDraw", "https://github.com/SDraw/ml_mods_cvr")]
|
||||
[assembly: MelonLoader.MelonInfo(typeof(ml_lme.LeapMotionExtension), "LeapMotionExtension", "1.3.7", "SDraw", "https://github.com/SDraw/ml_mods_cvr")]
|
||||
[assembly: MelonLoader.MelonGame(null, "ChilloutVR")]
|
||||
[assembly: MelonLoader.MelonOptionalDependencies("ml_pmc")]
|
||||
[assembly: MelonLoader.MelonPlatform(MelonLoader.MelonPlatformAttribute.CompatiblePlatforms.WINDOWS_X64)]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue