Skip to first unread message

bassettj

unread,
Oct 28, 2014, 1:29:30 PM10/28/14
to mitappinv...@googlegroups.com
Hello, I'm a graduate student attempting to teach high school students the basics about programming through app inventor 2. I need to relate the programming back to physic, for one of the classes is a physics class learning about projectiles. I was hoping to have the students create a basic basket toss (or angry bird style) game but I can't seem to find the physics engine that app inventor uses to see if its possible for the students to complete the task. If anyone has a tutorial on this for me to design a curriculum around I would be greatly appreciate the link.


Jos

unread,
Oct 28, 2014, 1:36:27 PM10/28/14
to mitappinv...@googlegroups.com
Hi there,

App Inventor currently does not integrate with any game engine or physics simulation engine. The current support for game-like features is rather short, and although there have been many conversation (especially in the open source forum) about extending support for games, what's currently available can be found in the 'Drawing and Animation' drawer, which basically contains a Canvas, a Ball, and an ImageSprite components. You can do things such as movement, dragging, and flinging sprites, and if you get creative, you can do quite a bit with that.

SteveJG

unread,
Oct 28, 2014, 1:39:24 PM10/28/14
to mitappinv...@googlegroups.com
Physics engine?   Ha ha ha.    Here is what you got to work with:  http://ai2.appinventor.mit.edu/reference/components/animation.html

Here is a bouncing ball.. angle of incidence = angle of reflection ?      https://sites.google.com/site/appinventoredu/projects/bouncing-ball



This stuff might get you started.   Let us know if AI2 works for you.


Regards,
Steve

bassettj

unread,
Oct 28, 2014, 1:47:27 PM10/28/14
to mitappinv...@googlegroups.com
Yeah that's what my search came up with :-( I guess I could have them build a basic one in game but geeze I don't wanta be that mean. These kids are beginners. 

Abraham Getzler

unread,
Oct 28, 2014, 6:06:34 PM10/28/14
to mitappinv...@googlegroups.com
Here's  a link to a doc on ball bounce calculations
with sample code and a web reference for
further research ...

https://drive.google.com/open?id=1vMOewOPYmN4gzbDiXJgLeCQ1W5MzuT7ogXQqV96R0P8&authuser=0
Feel free to copy it.

ABG

Reply all
Reply to author
Forward
0 new messages