- Home /
Question by
Jenzik · Jan 04, 2012 at 08:51 PM ·
gameobjectcollidercapsulecollidercapsulecast
Finding CapsuleCollider
How do i find a capsule collider on my PlayerObject , From another script (Script on Weapon being child to Player)
Comment
Answer by DaveA · Jan 04, 2012 at 08:54 PM
var player = GameObject.Find("PlayerObject"); // assuming that's the name of your player object
var capsule = player.GetComponent(CapsuleCollider);
Your answer
Follow this Question
Related Questions
Translate.transform problems (collision/Rigibody) 0 Answers
Why do Instantiated GameObjects Colliders only work on player i am controlling,nothing else? 2 Answers
OnCollisionEnter Collision not detected? 1 Answer
Get the script instance associated with a collider 1 Answer
How can I check if an instantiated object collides with another instantiated object? 1 Answer