- Home /
unity 3d model viewer
HEY i've just done a script in C that looks like a 3D model viewer. But i have a problem
(i can zoom in or out a model with the touch of two fingers, i can rotate the model by moving the finger)
The problem is i would like some inertia, that's to say when i'm done moving my finger the object still rotates a little, as if it had some inertia .
If you have any ideas ? thx
Answer by Marnix · Apr 29, 2011 at 01:16 PM
Have a look at some standard assets. You are searching for smoothing. So for example, the script in Standards Assets/Scripts/Camera Scripts/SmoothLookAt.js
does these things with a lookAt. So maybe you can take a look into that script.
I also found this post on the unity forum: http://forum.unity3d.com/threads/11383-How-do-I-smooth-out-the-movements-of-a-MouseLook-Camera
Answer by Alec-Slayden · Apr 29, 2011 at 02:04 PM
I can't remember exactly, but I was able to get something along those lines in one of my experiments, using the drag rigidbody preset script, with another script that reset its position in LateUpdate so dragging only rotated the object.
This made it so dragging quickly would spin the object and give it momentum to keep spinning. This could be adjusted in the Drag rigidbody script using the spring and damper settings.
Answer by jhill3d · Jul 06, 2011 at 01:42 AM
Hi Jacob28 - would you be willing to share the source for this project? I'm trying to create the same thing. Thanks!
Your answer
Follow this Question
Related Questions
Anywhere to find animations? 0 Answers
Imported Blender Models Issue 1 Answer
How Can I Get The Pants to Not Move? 4 Answers
Necromancer GUI isn't working? 0 Answers
Where Can I Download Pre-made 3D Models? 14 Answers