Hi everyone,
I'm absolutely new in developing and now working on a school project which is about interaction between hololens mapping mesh and leapmotion hand.
eg. Some cubes(I put cubes on the joints of "attachment hand component" to represent hands in AR) of hands change their color when the cubes touch other objects.
The problem is that the cubes cannot make a collision with mapping mesh, or hands them selves, as opposed to the successful result between hand and normal unity 3d game object. (I attach an image to show this)
I'm using BoxCollider to make color change, in this way.
public class Inter_Finger_Row01 : MonoBehaviour {
public Material[] material;
Renderer rend;
void Start()
{
rend = GetComponent<Renderer>();
rend.enabled = true;
rend.sharedMaterial = material[0];
}
void OnCollisionEnter(Collision other)
{
rend.sharedMaterial = material[1];
}
Does somebody know how can the cubes change their colors when they make collisions with mapping mesh and them selves?
I really appreciate your patience to read this.
Any comments should be big help for me cuz I'm a totally beginner.
Thanks,