How to make a Box Collider stick to an object?
Hi, so what I am trying to do is make a block that moves up and down, and your main objective is to avoid it, and if it hits you, it kills you. But, I have an issue, which is why I am writing here. Of course, you need to have a box collider, but when the block that kills you goes up, the box collider stays in the place that it was placed, and it does not move with the block. If you need me to clarify some things, then ask me to do so.
Thank you!
What is your real problem? how to box collider stick to an object or try to kills you? make it more clearer... if your question is make box collider stick to an object.. that so simple make the object child to the object..
You mean you have a block GameObject and a seperate Box Collider on an empty GameObject ? If so just remove the Box Collider GO and on the block GO add the Component Box Collider so it is a single GameObject and have common Transform... If that s not the case you have to elaborate a bit more, maybe a screne shot of your format would help. Cheers.
Answer by greid93 · Apr 23, 2017 at 08:15 AM
I might be mis-reading the situation, but have you tried destroying the rigidbody component on collision? There's probably a better way to do what you are asking but I mean, I think that should work...
Answer by MiloRoban · Apr 24, 2017 at 02:06 AM
I need the box collider to stick to the object that tries to kill you, because when the block goes up the ball is still killed by thin air. I want it so you can avoid the block, and only when the block is down is when you will die if collided into it.
Your answer
Follow this Question
Related Questions
should i make a 1 mesh character or make a mesh for every limb? 0 Answers
Creating 3D box collider-like gizmo? 1 Answer
How can I implement box collider or mesh collider in this code? 0 Answers
return to start position once hit with other collider 1 Answer
How to detect Collision/Overlap between a BoxCollider2D(trigger) and PlaftformEffector2D ? 1 Answer