Physics: Difference between revisions
Jump to navigation
Jump to search
Content deleted Content added
mNo edit summary |
No edit summary |
||
Line 15: | Line 15: | ||
* [[Set stage boundaries to ( )|set stage boundaries to [ ]]] |
* [[Set stage boundaries to ( )|set stage boundaries to [ ]]] |
||
* [[set gravity to x: () y: ()]] |
* [[set gravity to x: () y: ()]] |
||
* [[ |
* [[Enable for ( ) mode ( )|enable for [ ] mode [ ]]] |
||
* [[ |
* [[step simulation]] |
||
* [[ |
* [[Go to x: ( ) y: ( ) ( )|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 fixed to [ ]]] |
||
* [[ |
* [[Set density to ( )|set density to [ ]]] |
||
* [[ |
* [[set density to ( )]] |
||
* [[ |
* [[Set friction to ( )|set friction to [ ]]] |
||
* [[Please add some|set friction to ( )]] |
* [[Please add some|set friction to ( )]] |
||
* [[ |
* [[Set bounce to ( )|set bounce to [ ]]] |
||
* [[ |
* [[set bounce to ( )]] |
||
* [[ |
* [[set scroll to x: ( ) y: ( )]] |
||
* [[ |
* [[change scroll by x: ( ) y : ( )]] |
||
== Variables and Booleans == |
== Variables and Booleans == |
||
* [[ |
* [[( gravity x )]] |
||
* [[ |
* [[( gravity y )]] |
||
* [[ |
* [[( x velocity )]] |
||
* [[ |
* [[( y velocity )]] |
||
* [[ |
* [[( angular velocity )]] |
||
* [[ |
* [[Fixed?|< fixed? >]] |
||
* [[ |
* [[( density )]] |
||
* [[ |
* [[( friction )]] |
||
* [[ |
* [[( bounce )]] |
||
* [[ |
* [[( list sprites touching ( ) )|( list sprites touching [ ] )]] |
||
* [[ |
* [[( x scroll )]] |
||
* [[ |
* [[( y scroll )]] |
||
== References == |
== References == |
Revision as of 21:14, 17 October 2023
The Physics extension is a port of the Box2D physics engine.
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