Physics: Difference between revisions
Jump to navigation
Jump to search
Content added Content deleted
No edit summary |
(new update guys) |
||
Line 11: | Line 11: | ||
* [[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: ()]] |
||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
* [[push with force ( ) in direction ( )]] |
|||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
* [[change scroll by x: ( ) y : ( )]] |
|||
== Variables and Booleans == |
|||
* [[( gravity x )]] |
* [[( gravity x )]] |
||
* |
*[[( gravity y )]] |
||
⚫ | |||
* [[disable physics for this sprite]] |
|||
⚫ | |||
⚫ | |||
*[[( simulation rate )]] |
|||
⚫ | |||
⚫ | |||
⚫ | |||
* [[( x velocity )]] |
* [[( x velocity )]] |
||
* |
*[[( y velocity )]] |
||
* [[( |
* [[push with force ( ) in direction ( )]] |
||
* |
*[[spin with force ( )]] |
||
* |
*[[set angular velocity to ( )]] |
||
* |
*[[( angular velocity )]] |
||
⚫ | |||
*[[Fixed?|< fixed? >]] |
|||
⚫ | |||
⚫ | |||
*[[( density )]] |
|||
⚫ | |||
⚫ | |||
*[[( friction )]] |
|||
⚫ | |||
⚫ | |||
* [[( bounce )]] |
* [[( bounce )]] |
||
* [[( list sprites touching ( ) )|( list sprites touching [ ] )]] |
* [[( list sprites touching ( ) )|( list sprites touching [ ] )]] |
||
⚫ | |||
⚫ | |||
* [[( x scroll )]] |
* [[( x scroll )]] |
||
* |
*[[( y scroll )]] |
||
== |
==Documentation== |
||
[[File:Box2d turbodocs.png|thumb|350x350px|A screenshot of the documentation page.]] |
[[File:Box2d turbodocs.png|thumb|350x350px|A screenshot of the documentation page.]] |
||
There exists a documentation page for the extension. |
There exists a documentation page for the extension. |
||
Line 55: | Line 55: | ||
== |
==References== |
||
<references /> |
<references /> |
||
[[Category:Extensions]] |
[[Category:Extensions]] |
Revision as of 00:36, 9 January 2024
Physics | |
---|---|
[[File:
| |
Description | *PenguinMod: Box2D Physics extension created by Griffpatch.
|
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]
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
Documentation
![](http://static.miraheze.org/pmodwiki/thumb/8/89/Box2d_turbodocs.png/307px-Box2d_turbodocs.png)
There exists a documentation page for the extension.
But it has since become outdated.[2]