- Home /
Play animation by touching the MMD model using leapmotion.
I want to play the animation by touching the MMD model using leapmotion. So I thought to attempt to obtain a collision judgment, but it does not work wrote the following code.
using UnityEngine;
using System.Collections;
public class touch : MonoBehaviour {
void OnCollisionEnter (Collision collision) {
model.GetComponent<Animation>().Play("idle");
}
}
Add the Rigidbody to PhysicsModel of HandController, by setting the BulletPhysics to PhysicsEngine of MMD models to turn off the JoinLocalWorld, tried etc. to turn off the isTrigger of Collider. But it is does not work.
Is this a problem with the MMD model ? The contents of the code ? Or object to attach the code ? Please help ... If I'm sorry if the sentence is esoteric.
Your answer
Follow this Question
Related Questions
Multiple Cars not working 1 Answer
,Fast Moving Gameobject Collision and Trigger Check Failed 0 Answers
Don't understand why this on collision script doesn't work. 2 Answers
Distribute terrain in zones 3 Answers
How to animate a net 2d? 0 Answers