Box2D - Car v0.3

Box2D - Car v0.3

by griffpatch_tutor

👁 74,826 ❤️ 1,173 ⭐ 1,049 🔄 26
Created: Feb 4, 2016 Last modified: Sep 5, 2017 Shared: Feb 4, 2016

Description

    ★★★★ The Scratch Team has spoken ★★★★ "The thinking on the moderation staff, at the moment, is that Scratch extensions should stay over on the ScratchX.org site" ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━        ★★★★ So here you go: ★★★★ http://scratchx.org/?url=http://griffpatch.github.io/Box2D.js-Scratch2-Extension/examples/Box2d-Car-v0.3.sbx#scratch ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ ★ Video: https://www.youtube.com/watch?v=3nBQY3oqxX4 ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ ★ Info - Box2D is an open source 2D physics engine used in a lot of games on the internet. ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ ★ Keys - left & right arrow keys - Green flag to reset... ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ ★ How does it work? Well basically, you have your sprites in scratch (making sure that each one has i's own variable with it's name in. Then my griffpatch messaging extension loads the box2d javascript library and adds blocks to scratch that let you map each sprite in scratch with a physical body in box2d. Then box2d does the leg work, and you just read back the new positions and rotations of the sprites. ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ ★ Credit for box2d go to Erin Catto

Project Details

Visibility
Visible
Comments
Enabled