Is there a Physics API? 🤔

After looking at the Comprehensive Physics Tutorial… Comprehensive Physics Tutorial …I realized that my previous experiment might not have worked because I was looping the timeline between frame zero and 0.01. So, I moved the experiment between frames 0.05 and 0.06.

And then…

…nothing!

I still can’t get physics to restart after an element has been moved by other means, such as JavaScript or using the Drag element option in Hype.

I’m also not happy with adding 1 pixel or subtracting 1 pixel to move actors. It should be more fluid. I was wondering if I could do tweening. At least, that’s the Flash terminology. I’m not quite sure if it’s the same thing for JavaScript. I looked around and my preliminary search suggests that this is not common with native JavaScript – but their are libraries for it. That’s when I started to wonder, “Is Hype using jQuery?”

I searched the “full” JavaScript file and saw this…

// better form of eval(scripts[i].text) for IE and Firefox (taken from jquery)

I’m not quite sure how Hype handles their transitions / tweening, but it seems that more than just the beginning of the timeline should be relative. I think I might have mentioned this before in the thread. Elements should move relatively. Move X to X + 10, not just move X to 10.

The WWDC is less than a week away. I’m excited to see what happens with the Apple TV. If Hype gets better with Physics, a game could be created once and then released to many different platforms… web, Android, iOS.