Physics: Difference between revisions
Jump to navigation
Jump to search
Content added Content deleted
No edit summary |
No edit summary |
||
(4 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
{{Extension|extension_img= |
{{Extension|extension_img=Box2d.png|extension_desc=*'''PenguinMod''': Box2D Physics extension created by Griffpatch. |
||
Physics.png|PenguinMod |
|||
Box2d turbo.png|Turbowarp |
|||
</gallery>|extension_desc=*'''PenguinMod''': Box2D Physics extension created by Griffpatch. |
|||
*'''Turbowarp''': Two dimensional physics. Originally created by griffpatch.}}The Physics extension is a port of the [https://box2d.org/ Box2D physics engine.] |
*'''Turbowarp''': Two dimensional physics. Originally created by griffpatch.}}The Physics extension is a port of the [https://box2d.org/ Box2D physics engine.] |
||
Line 11: | Line 8: | ||
* [[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 [ ]]] |
|||
* |
*[[( gravity y )]] |
||
* |
*[[Enable for ( ) mode ( )|enable for [ ] mode [ ]]] |
||
* [[ |
* [[disable physics for this sprite]] |
||
*[[step simulation]] |
|||
⚫ | |||
* [[set simulation rate to ( )]] |
|||
*[[( simulation rate )]] |
|||
*[[Go to x: ( ) y: ( ) ( )|go to x: ( ) y: ( ) [ ]]] |
|||
*[[Set velocity to sx: ( ) sy: ( )]] |
|||
⚫ | |||
⚫ | |||
⚫ | |||
* [[push with force ( ) in direction ( )]] |
* [[push with force ( ) in direction ( )]] |
||
* |
*[[spin with force ( )]] |
||
* |
*[[set angular velocity to ( )]] |
||
⚫ | |||
⚫ | |||
* |
*[[Set fixed to ( )|set fixed to [ ]]] |
||
* |
*[[Fixed?|< fixed? >]] |
||
* |
*[[Set density to ( )|set density to [ ]]] |
||
* |
*[[set density to ( )]] |
||
⚫ | |||
⚫ | |||
* |
*[[Set friction to ( )|set friction to [ ]]] |
||
*[[Please add some|set friction to ( )]] |
|||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
* [[set scroll to x: ( ) y: ( )]] |
* [[set scroll to x: ( ) y: ( )]] |
||
* [[change scroll by x: ( ) y : ( )]] |
* [[change scroll by x: ( ) y : ( )]] |
||
== Variables and Booleans == |
|||
⚫ | |||
* [[( gravity y )]] |
|||
⚫ | |||
⚫ | |||
⚫ | |||
* [[Fixed?|< fixed? >]] |
|||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
* [[( x scroll )]] |
* [[( x scroll )]] |
||
* |
*[[( y scroll )]] |
||
== Documentation == |
|||
[[File:Box2d turbodocs.png|thumb|350x350px|A screenshot of the documentation page.]] |
|||
There exists a documentation page for the extension. |
|||
⚫ | |||
== |
==See Also== |
||
⚫ | |||
*[[3D Physics]] |
|||
==References== |
|||
<references /> |
<references /> |
||
{{ExtensionsNav}} |
|||
[[Category:Extensions]] |
Latest revision as of 23:34, 30 May 2024
Physics | |
---|---|
![]() | |
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