- Home /
Help with collider rotation and 'onmousedown ()' function, Please.
Hey, i could really use some advice, I'm trying to make a fairly rough collider for an object, and I'm trying to use the standard box collider.
My issue is that i cant rotate the collider, i looked up the components documentation, and have scoured the web looking for a solution. but all i have found is people saying to child the colliders as empty game objects.
Unfortunately this isn't compatible with my - 'onmousedown()' function.
Is there any easy solution?
I would really appreciate any help.
Thanks Guys!
What do you mean you can not rotate the collider? In the editor or by script?
In the editor - rotating the collider while it is in the meshes inspector makes both rotate. But i need to rotate the the a square collider 45 degrees to make it fit over the mesh. Any ideas?
Then the only way is to create child objects and attach colliders to them (as you already found out). $$anonymous$$aybe you could post your On$$anonymous$$ouseDown() code so we could help?
Your answer
Follow this Question
Related Questions
Images Rotation 1 Answer
How to rotate an object but keep it's collider 2 Answers
Turning in a tube with raycast 1 Answer
Rotate towards 270 degrees,Rotate Towards 270 1 Answer
How to stop rotation in x and y axis??? 2 Answers