Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to make the Start/End Prefab able to be Raycasted?
#11
Sorry, but i need to ask you again Sonrojado

When i want to grab the End Prefab, my handle will be created on the Start Prefab and im carrying it not the End Prefab.
But when i grab the Start Prefab, its okay.

Code:
public override void OnInteract(NetworkIdentity _player, bool _release)
    {
            base.OnInteract(_player, _release);

            m_handleGO = new GameObject("Obi Handle");
            m_handle = m_handleGO.AddComponent<ObiParticleHandle>();
            m_handle.Actor = m_rope;

            Debug.Log("Interact with: " + gameObject.name);

            m_handleGO.transform.position = transform.position;

            m_handle.AddParticle(0, transform.position, 1f);
        }        
    }
Reply


Messages In This Thread
RE: How to make the Start/End Prefab able to be Raycasted? - by Rexima - 02-11-2017, 10:57 PM