Changes log:
2015/09/08 - bug fix -- ball could stick to canvas bottom; new version is 2
---
END of changes log
Fling anywhere on the the Canvas to see the gravity demonstration.
Try adjusting the gravity, bounciness and rolliness values to simulate different materials and bodies (earth - 1.5 vs the moon - 0.25)
How it works:
A Clock Timer is used to update the position of a ball by applying x and y velocities and gravity.
When the ball bounces a bounciness multiplier reduces it's y velocity until it eventually stops bouncing.
When the ball rolls, a rolliness multiplier reduces it's x velocity until it eventually stops rolling.
---
sf
Fling the Canvas to see the gravity demonstration.
Try adjusting the gravity, bounciness and rolliness values to simulate different materials and bodies (earth - 1.5 vs the moon - 0.25)
How it works:
A Clock Timer is used to update the position of a ball by applying x and y velocities and gravity.
When the ball bounces a bounciness multiplier reduces it's y velocity until it eventually stops bouncing.
When the ball rolls, a rolliness multiplier reduces it's x velocity until it eventually stops rolling.
---
sf
--
(you have received this message from the App Inventor Developers Library)
---
You received this message because you are subscribed to the Google Groups "App Inventor Developers Library" group.
To unsubscribe from this group and stop receiving emails from it, send an email to app-inventor-develope...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
To unsubscribe from this group and stop receiving emails from it, send an email to app-inventor-developers-library+unsubscribe@googlegroups.com.
I would like to make it so that the ball falls and if it hits an obstacle it should bounce off and in the end this ball falls into a container at the bottom.
There it should then be checked in which container it fell and how many points this gives.
Thanks.
You are welcome to leave replies for existing posts, but you may not create a new post asking for support.
Why? Because this group is an *ARCHIVE*, not a support forum.
Since the way permissions are setup with Google groups, in order to allow replies to existing posts, I must allow new posts.
And I do want feedback!
So please honor my wishes on this.
Trying to push the limits of App Inventor!
Snippets,
Tutorials and
Extensions from
Pura Vida Apps by
Taifun.