- Home /
I'm trying to add a hitbox to a player. Can I add it to the mesh?
And if not, how can I add a box that will stick to a player?
Answer by ScroodgeM · Aug 07, 2012 at 07:31 PM
hit box means collider methinks...
so, answer yes - there's mesh collider can be attached to player that exactly covers the mesh of model. but it hard a little to compute, so better to use pack of primitive colliders. it can be attached simple to GameObjects in project. those colliders will be 'sticked' to player 8)
Answer by wilco64256 · Aug 07, 2012 at 07:31 PM
You can just add a box collider (for a person character it would probably "collide" a bit better as a capsule collider) directly to the player object in your scene. It will stick with them and follow them as they move around.
Your answer
Follow this Question
Related Questions
Primitive Collider slower then mesh collider 0 Answers
Box/mesh collider 0 Answers
Is there an easy way to get on-screen render size (bounds)? 5 Answers
Raycast bug? 1 Answer