Physics: Difference between revisions
Jump to navigation
Jump to search
Content added Content deleted
No edit summary |
mNo edit summary |
||
Line 1: | Line 1: | ||
The Physics extension is a port of the [https://box2d.org/ Box2D physics engine.] |
The Physics extension is a port of the [https://box2d.org/ Box2D physics engine.] |
||
[[File:Physics.png|thumb|309x309px|The Physics extension as seen from the extension list.]] |
[[File:Physics.png|thumb|309x309px|The Physics extension as seen from the extension list.]] |
||
It was originally ported by Griffpatch and then added to Turbowarp. It was originally shown off on his |
It was originally ported by Griffpatch and then added to Turbowarp. It was originally shown off on his Youtube channel on February 14th, 2016<ref>https://youtu.be/3nBQY3oqxX4</ref> |
||
Youtube channel on February 14th, 2016<ref>https://youtu.be/3nBQY3oqxX4</ref> |
|||
== Description == |
== Description == |
Revision as of 03:08, 17 October 2023
The Physics extension is a port of the Box2D physics engine.
![](http://static.miraheze.org/pmodwiki/thumb/3/37/Physics.png/266px-Physics.png)
It was originally ported by Griffpatch and then added to Turbowarp. It was originally shown off on his Youtube channel on February 14th, 2016[1]
Description
PenguinMod
Box2D Physics extension created by Griffpatch.
Turbowarp
Two dimensional physics. Originally created by griffpatch.
Blocks
- set stage boundaries to [ ]
- set gravity to x: () y: ()
- enable for [ ] mode [ ]
- step simulation
- go to x: ( ) y: ( ) [ ]
- Set velocity to sx: ( ) sy: ( )
- change velocity to sx: ( ) sy: ( )
- push with force ( ) in direction ( )
- spin with force ( )
- set angular velocity to ( )
- set fixed to [ ]
- set density to [ ]
- set density to ( )
- set friction to [ ]
- set friction to ( )
- set bounce to [ ]
- set bounce to ( )
- set scroll to x: ( ) y: ( )
- change scroll by x: ( ) y : ( )
Variables and Booleans
- ( gravity x )
- ( gravity y )
- ( x velocity )
- ( y velocity )
- ( angular velocity )
- < fixed? >
- ( density )
- ( friction )
- ( bounce )
- ( list sprites touching [ ] )
- ( x scroll )
- ( y scroll )