Physics
(Redirected from Box2D)
- This article is about TurboWarp's port of Griffpatch's extension. For pooiod's (aka pooiod7) version, see BoxedPhysics.
The Physics extension is a port by Griffpatch of the Box2D physics engine. It was shown off on his YouTube channel on ,[1] although this version was written for Scratch 2.0, and is not publicly available. The first showoff of the current version can also be found on his YouTube channel, and is from .[2]
Originally, it was only available on Griffpatch's own Scratch fork,[3] however it was added to TurboWarp's extension gallery on ,[4] but only as a test. It was fully added on
Blocks
- set stage boundaries to [ ]
- set gravity to x: () y: ()
- gravity x
- gravity y
- enable for [ ] mode [ ]
- disable physics for this sprite
- step simulation
- set simulation rate to ( )
- ( simulation rate )
- go to x: ( ) y: ( ) [ ]
- Set velocity to sx: ( ) sy: ( )
- change velocity to sx: ( ) sy: ( )
- ( x velocity )
- ( y velocity )
- push with force ( ) in direction ( )
- spin with force ( )
- set angular velocity to ( )
- ( angular velocity )
- set fixed to [ ]
- < fixed? >
- set density to [ ]
- set density to ( )
- ( density )
- set friction to [ ]
- set friction to ( )
- ( friction )
- set bounce to [ ]
- set bounce to ( )
- ( bounce )
- ( list sprites touching [ ] )
- set scroll to x: ( ) y: ( )
- change scroll by x: ( ) y : ( )
- x scroll
- y scroll
See Also
Further reading
External links
References