mirror of
https://github.com/hanetzer/sdraw_mods_cvr.git
synced 2025-09-04 19:09:23 +00:00
Fix of collision layers
This commit is contained in:
parent
aef5af99af
commit
7f29079109
3 changed files with 17 additions and 6 deletions
|
@ -311,7 +311,7 @@ namespace ml_prm
|
|||
BipedRagdollReferences l_avatarReferences = BipedRagdollReferences.FromAvatar(PlayerSetup.Instance.Animator);
|
||||
|
||||
m_puppetRoot = new GameObject("Root").transform;
|
||||
m_puppetRoot.gameObject.layer = CVRLayers.PlayerClone;
|
||||
m_puppetRoot.gameObject.layer = CVRLayers.PlayerLocal;
|
||||
m_puppetRoot.parent = m_puppet;
|
||||
m_puppetRoot.position = m_avatarTransform.position;
|
||||
m_puppetRoot.rotation = m_avatarTransform.rotation;
|
||||
|
@ -775,7 +775,7 @@ namespace ml_prm
|
|||
static Transform CloneTransform(Transform p_source, Transform p_parent, string p_name)
|
||||
{
|
||||
Transform l_target = new GameObject(p_name).transform;
|
||||
l_target.gameObject.layer = CVRLayers.PlayerClone;
|
||||
l_target.gameObject.layer = CVRLayers.PlayerLocal;
|
||||
l_target.parent = p_parent;
|
||||
p_source.CopyGlobal(l_target);
|
||||
return l_target;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue