Tag Info

Hot answers tagged

5

What you are asking about is called acceleration. Easing out and easing in. It is achieved by computing the elements current speed before you move it. The simplest way to do that if your goal is only smoothness in motion is to use acceleration. You do this like this (pseudo code): p.x = 10.0; // Current character position. v.x = 0; maxV.x = 1.0; // Inset ...


2

Yes, the Update loop is ideal for this. There are no special plug-ins required and you can do this with the free version. Basically you move the objects a tiny bit towards their destination each frame. When all those frames run one right after the other, it gives the appearance of smooth movement. A self contained script would look like the one I've created ...


1

I'm guessing that insert and remove traverse the quad tree from root to leaf, and that's why you are concerned about its performance? (By the way, rule of thumb is never perform any optimisations unless you've asked "have I measured a real performance problem" and can answer in the affirmative.) In games, the vast majority of movement would be continuous, ...



Only top voted, non community-wiki answers of a minimum length are eligible