Skip to content
InterfaceTypes & Utilities@public

FlxPhysicsBodyDefinition ​

Portable body creation descriptor passed to a backend.

ts
export interface FlxPhysicsBodyDefinition

Properties ​

PropertyModifiersTypeDescription
allowSleepreadonlyboolean-
anglereadonlynumber-
angularVelocityreadonlynumber-
awakereadonlyboolean-
continuousCollisionreadonlyboolean-
filterreadonlyFlxPhysicsFilter-
fixedRotationreadonlyboolean-
gravityScalereadonlynumber-
idreadonlystring-
materialreadonlyFlxPhysicsMaterial-
positionreadonlyFlxPhysicsVector-
shapesreadonlyreadonly FlxPhysicsShape[]-
typereadonlyFlxPhysicsBodyType-
velocityreadonlyFlxPhysicsVector-

Released under the MIT License.