w10schools
Login
Register
In current category
Only my posts
Home
Tutorials
HTML, CSS
HTML, HTML5
CSS, CSS3
XML
JavaScript, AJAX
PHP
Ruby on Rails
Ruby
Rails
ASP.NET
ASP
C# .NET
Java
JSP
Databases
MySQL
MSSQL Server
Oracle
Web Server
Windows
Linux
Apache
IIS
Design
Dreamweaver
Flash
Photoshop
Fireworks
CorelDRAW
Illustrator
References
HTML
Bootstrap
CSS
CSS Selectors
Sass
JavaScript
Mobile Apps
Cordova
Ruby on Rails
Ruby
Rails
PHP
Function
Language
CodeIgniter
Phalcon
PHPUnit
Symfony
Drupal
Yii
Laravel
Perl
Perl
Python
Python
Django
NumPy
Pandas
scikit-image
scikit-learn
Statsmodels
Matplotlib
Lua
Lua
C, C++
C
C++
Server
Docker
Apache HTTP Server
Nginx
Database
PostgreSQL
Big Data
TensorFlow
Game Development
Phaser
LÖVE
Articles
News
General
Website Promotion
Online Advertising
Make Money Online
Editorials
Interviews
Web Roundups
Resources
Design
Fonts
Graphics
Vectors
Templates
UI (User Interface)
Brushes
Patterns, Backgrounds
Textures
Web Development
HTML, CSS
XML
JavaScript, AJAX
Ruby on Rails
PHP
Java
.NET
Python
Perl
Flash
Mobile Application Development
Mobile Development Tools
Swift
Online Services
Online Storage
Web Hosting
Tools
Generators
Edit
Toggle Dropdown
In Place Editing
Advanced Editing
References
Game Development
Phaser
P2 Physics
Physics.P2.Body
Language
Default
Markdown
Physics.P2.Body#type
type
: number
The type of physics system this body belongs to.
Source code:
physics/p2/Body.js
(
Line 48
)
Links:
http://phaser.io/docs/2.6.2/Phaser.Physics.P2.Body.html#type
doc_phaser
2025-01-10 15:47:30
Comments
Leave a Comment
Please
login
to continue.
Popular Articles
Physics.P2.Body#Body
new Body(game, sprite, x, y, mass) The Physics Body is typically linked to a single Sprite and defines properties that determine how the physics bo
Physics.P2.Body#angularVelocity
angularVelocity : number The angular velocity of the body. Source code: physics/p2/Body.js (Line 1691)
Physics.P2.Body#loadPolygon()
loadPolygon(key, object) → {boolean} Reads the shape data from a physics data file stored in the Game.Cache and adds it as a polygon to this Body.
Physics.P2.Body#offset
offset : Phaser.Point The offset of the Physics Body from the Sprite x/y position. Source code: physics/p2/Body.js (Line 53)
Physics.P2.Body#rotation
rotation : number The angle of the Body in radians.If you wish to work in degrees instead of radians use the Body.angle property instead. Working i
Return to View
Please login to continue.