|
I want to check the surface in collision. for example, cube has six surface. so, I want to know when cube has collision which surface of cube has collision.
(comments are locked)
|
|
You could use the normal of the hit and transform that to local space. To make things easier to compare just round the returning Vector3 and then compare the output. The code below should be enough to get you started on an implementation, although it's just tested in a very strict environment with a cube. Hope it helps! thanks. I'll try it.
May 06 '12 at 12:43 PM
Rikimaru
(comments are locked)
|
|
Im pretty sure thats not possible. One way you could do it is create 6 plane colliders that side faced over each side of the cube. So each individual plane would offer different responses each cube face. I'm sorry for your answer. T.T There being no answer, I try to find another. anyway thanks~~~
May 06 '12 at 08:15 AM
Rikimaru
(comments are locked)
|
