I would like to know if it is possible create real time animation with scripting alone in Unity. If I am given a series of coordinates each representing a part of the skeleton (i.e. head, body, feet), and I would update these points’ coordinates every frame. Is it possible to link these coordinates to a model in Unity and create animation using scripting? Or is it possible to draw out the model using these coordinates and update its movement?
yes it is possible …but it is very much complicated to do so
Bones are gameObjects and have transforms, so yes, you can definitely do that. You just need to find the bones first. Probably the easiest way is to find them by name. Then you can set their position, localposition, rotation, etcetera.
Thanks for the hint, I think I will place a sphere on each joint of the skeleton for now. Then transform the position like you said. I’ll need to set other gameobjects in between the joints, but I guess I’ll worry about that later.