Ok guys, I am at a complete loss of what to do. I’ve done hours of Google searching and I’m usually not one to stub my toe and go to the nearest hospital demanding a team of specialists. I’ve gotten a model from Mixamo and some animations, set up a test project, got all my animations imported, animator controller set up and verified the animations. All of that is picture perfect. I even have a huge quad for a walking surface!
(I’ve gone through the Roll-A-Ball and Space Shooter tutorials. I wanted to give some ideas a go and decided against the spooky zombie teddy shooter tutorial.)
My problem is having my player object do any kind of moving or collision. (Scripting is not an issue) I’ve tried colliders of the box and capsule variety surrounding the model, but any time I apply a velocity or force or something physics related happens (I’m dropping it in the scene above the quad) my player object does not remain upright and falls over like a pillar. I’ve tweaked mass and force scalar variables to no avail.
Could this falling over be due to the fact that the model… origin (?) is not in the center of the model (I’d say the hips would be center) but rather the origin is at the soles of the feet? The transform position when set to 0/0/0 puts the feet there, perfectly on top of my quad which is also at 0/0/0. I had to re-center the box and capsule collider from 0/0/0 to a little higher on the Y-axis. It looks like there’s some sort of center of gravity thing going on but it’s not set properly.
I decided to try a Mesh Collider, but Unity gives me this little gem:
Non-convex MeshCollider with non-kinematic Rigidbody is no longer supported in Unity 5. (FYI I’m using 2017.3.0f3) If you want to use a non-convex mesh either make the Rigidbody kinematic or remove the Rigidbody component. Scene hierarchy … non-important bits
In the long run, I want to be able to detect certain parts of the body for damage effect purposes, and for some special effects via code. But forget all that if I can’t even get the darn thing moving properly!
The character controller is out of the question. It’s a glorified capsule collider with gimped physics interactions imho. I want the player object to be affected by anything and everything physics related, from bullet impacts to explosions. Eventually I want to code in some IK for arm movements, but that’s waaaaay later in the game.
Oh, while we’re on the topic of physics, what unit of measurement is velocity in? Meters per second?
Thank you all for any help. I’m so eager to code with Unity, and Mixamo just made my life a whole lot easier to prototype ideas.