Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

Index

Methods

Properties

Constructors

Methods

  • activate(enable: boolean): void
  • activated(): boolean
  • addDistanceJoint(x1: any, y1: any, other: any, x2: any, y2: any, length: any, frequency: any, dampingRatio: any, collideConnected: any, variable: any): void
  • addFrictionJoint(x1: any, y1: any, other: any, x2: any, y2: any, maxForce: any, maxTorque: any, collideConnected: any, variable: any): void
  • addGearJoint(jointId1: any, jointId2: any, ratio: any, collideConnected: any, variable: any): void
  • addMotorJoint(other: any, offsetX: any, offsetY: any, offsetAngle: any, maxForce: any, maxTorque: any, correctionFactor: any, collideConnected: any, variable: any): void
  • addMouseJoint(targetX: any, targetY: any, maxForce: any, frequency: any, dampingRatio: any, variable: any): void
  • addPrismaticJoint(x1: any, y1: any, other: any, x2: any, y2: any, axisAngle: any, referenceAngle: any, enableLimit: any, lowerTranslation: any, upperTranslation: any, enableMotor: any, motorSpeed: any, maxMotorForce: any, collideConnected: any, variable: any): void
  • Parameters

    • x1: any
    • y1: any
    • other: any
    • x2: any
    • y2: any
    • axisAngle: any
    • referenceAngle: any
    • enableLimit: any
    • lowerTranslation: any
    • upperTranslation: any
    • enableMotor: any
    • motorSpeed: any
    • maxMotorForce: any
    • collideConnected: any
    • variable: any

    Returns void

  • addPulleyJoint(x1: any, y1: any, other: any, x2: any, y2: any, groundX1: any, groundY1: any, groundX2: any, groundY2: any, lengthA: any, lengthB: any, ratio: any, collideConnected: any, variable: any): void
  • addRevoluteJoint(x: any, y: any, enableLimit: any, referenceAngle: any, lowerAngle: any, upperAngle: any, enableMotor: any, motorSpeed: any, maxMotorTorque: any, variable: any): void
  • addRevoluteJointBetweenTwoBodies(x1: any, y1: any, other: any, x2: any, y2: any, enableLimit: any, referenceAngle: any, lowerAngle: any, upperAngle: any, enableMotor: any, motorSpeed: any, maxMotorTorque: any, collideConnected: any, variable: any): void
  • addRopeJoint(x1: any, y1: any, other: any, x2: any, y2: any, maxLength: any, collideConnected: any, variable: any): void
  • addWeldJoint(x1: any, y1: any, other: any, x2: any, y2: any, referenceAngle: any, frequency: any, dampingRatio: any, collideConnected: any, variable: any): void
  • addWheelJoint(x1: any, y1: any, other: any, x2: any, y2: any, axisAngle: any, frequency: any, dampingRatio: any, enableMotor: any, motorSpeed: any, maxMotorTorque: any, collideConnected: any, variable: any): void
  • applyAngularImpulse(angularImpulse: any): void
  • applyForce(forceX: any, forceY: any, positionX: any, positionY: any): void
  • applyForceTowardPosition(length: any, towardX: any, towardY: any, positionX: any, positionY: any): void
  • applyImpulse(impulseX: any, impulseY: any, positionX: any, positionY: any): void
  • applyImpulseTowardPosition(length: any, towardX: any, towardY: any, positionX: any, positionY: any): void
  • applyPolarForce(angle: any, length: any, positionX: any, positionY: any): void
  • applyPolarImpulse(angle: any, length: any, positionX: any, positionY: any): void
  • applyTorque(torque: any): void
  • b2Vec2(x: any, y: any): any
  • b2Vec2Sec(x: any, y: any): any
  • createBody(): void
  • createShape(): any
  • doStepPostEvents(runtimeScene: any): void
  • doStepPreEvents(runtimeScene: any): void
  • enableLayer(layer: any, enable: any): void
  • enableMask(mask: any, enable: any): void
  • enablePrismaticJointLimits(jointId: any, enable: any): void
  • enablePrismaticJointMotor(jointId: any, enable: any): void
  • enableRevoluteJointLimits(jointId: any, enable: any): void
  • enableRevoluteJointMotor(jointId: any, enable: any): void
  • enableWheelJointMotor(jointId: any, enable: any): void
  • getAngularDamping(): any
  • getAngularVelocity(): number
  • getBody(): any
  • getDensity(): any
  • getDistanceJointDampingRatio(jointId: any): any
  • getDistanceJointFrequency(jointId: any): any
  • getDistanceJointLength(jointId: any): number
  • getFriction(): any
  • getFrictionJointMaxForce(jointId: any): any
  • getFrictionJointMaxTorque(jointId: any): any
  • getGearJointFirstJoint(jointId: any): any
  • getGearJointRatio(jointId: any): any
  • getGearJointSecondJoint(jointId: any): any
  • getGravityScale(): any
  • getGravityX(): number
  • getGravityY(): number
  • getJointFirstAnchorX(jointId: any): number
  • getJointFirstAnchorY(jointId: any): number
  • getJointReactionForce(jointId: any): any
  • getJointReactionTorque(jointId: any): any
  • getJointSecondAnchorX(jointId: any): number
  • getJointSecondAnchorY(jointId: any): number
  • getLinearDamping(): any
  • getLinearVelocityLength(): any
  • getLinearVelocityX(): number
  • getLinearVelocityY(): number
  • getMassCenterX(): number
  • getMassCenterY(): number
  • getMotorJointAngularOffset(jointId: any): number
  • getMotorJointCorrectionFactor(jointId: any): any
  • getMotorJointMaxForce(jointId: any): any
  • getMotorJointMaxTorque(jointId: any): any
  • getMotorJointOffsetX(jointId: any): number
  • getMotorJointOffsetY(jointId: any): number
  • getMouseJointDampingRatio(jointId: any): any
  • getMouseJointFrequency(jointId: any): any
  • getMouseJointMaxForce(jointId: any): any
  • getMouseJointTargetX(jointId: any): number
  • getMouseJointTargetY(jointId: any): number
  • getName(): string
  • getNameId(): number
  • getPolygon(verticesData: any): null | Polygon
  • getPrismaticJointAxisAngle(jointId: any): number
  • getPrismaticJointMaxMotorForce(jointId: any): any
  • getPrismaticJointMaxTranslation(jointId: any): number
  • getPrismaticJointMinTranslation(jointId: any): number
  • getPrismaticJointMotorForce(jointId: any): any
  • getPrismaticJointMotorSpeed(jointId: any): number
  • getPrismaticJointReferenceAngle(jointId: any): number
  • getPrismaticJointSpeed(jointId: any): number
  • getPrismaticJointTranslation(jointId: any): number
  • getPulleyJointFirstGroundAnchorX(jointId: any): number
  • getPulleyJointFirstGroundAnchorY(jointId: any): number
  • getPulleyJointFirstLength(jointId: any): number
  • getPulleyJointRatio(jointId: any): any
  • getPulleyJointSecondGroundAnchorX(jointId: any): number
  • getPulleyJointSecondGroundAnchorY(jointId: any): number
  • getPulleyJointSecondLength(jointId: any): number
  • getRestitution(): any
  • getRevoluteJointAngle(jointId: any): number
  • getRevoluteJointMaxAngle(jointId: any): number
  • getRevoluteJointMaxMotorTorque(jointId: any): any
  • getRevoluteJointMinAngle(jointId: any): number
  • getRevoluteJointMotorSpeed(jointId: any): number
  • getRevoluteJointMotorTorque(jointId: any): any
  • getRevoluteJointReferenceAngle(jointId: any): number
  • getRevoluteJointSpeed(jointId: any): number
  • getRopeJointMaxLength(jointId: any): number
  • getShapeScale(): number
  • getTimeScale(): number
  • getWeldJointDampingRatio(jointId: any): any
  • getWeldJointFrequency(jointId: any): any
  • getWeldJointReferenceAngle(jointId: any): number
  • getWheelJointAxisAngle(jointId: any): number
  • getWheelJointDampingRatio(jointId: any): any
  • getWheelJointFrequency(jointId: any): any
  • getWheelJointMaxMotorTorque(jointId: any): any
  • getWheelJointMotorSpeed(jointId: any): number
  • getWheelJointMotorTorque(jointId: any): any
  • getWheelJointSpeed(jointId: any): number
  • getWheelJointTranslation(jointId: any): number
  • hasFixedRotation(): boolean
  • isBullet(): boolean
  • isDynamic(): boolean
  • isJointFirstObject(jointId: any): boolean
  • isJointSecondObject(jointId: any): boolean
  • isKinematic(): boolean
  • isPolygonConvex(polygon: any): boolean
  • isPrismaticJointLimitsEnabled(jointId: any): boolean
  • isPrismaticJointMotorEnabled(jointId: any): boolean
  • isRevoluteJointLimitsEnabled(jointId: any): boolean
  • isRevoluteJointMotorEnabled(jointId: any): boolean
  • isSleeping(): boolean
  • isSleepingAllowed(): boolean
  • isStatic(): boolean
  • isWheelJointMotorEnabled(jointId: any): boolean
  • layerEnabled(layer: any): boolean
  • maskEnabled(mask: any): boolean
  • onActivate(): void
  • onCreated(): void
  • onDeActivate(): void
  • onDestroy(): void
  • This method is called when the owner of the behavior is being removed from the scene and is about to be destroyed/reused later or when the behavior is removed from an object (can happen in case of hot-reloading only. Otherwise, behaviors are just de-activated, not removed. See onDeActivate).

    Returns void

  • onObjectHotReloaded(): void
  • recreateShape(): void
  • removeJoint(jointId: any): void
  • setAngularDamping(angularDamping: any): void
  • setAngularVelocity(angularVelocity: any): void
  • setBullet(enable: any): void
  • setDensity(density: any): void
  • setDistanceJointDampingRatio(jointId: any, dampingRatio: any): void
  • setDistanceJointFrequency(jointId: any, frequency: any): void
  • setDistanceJointLength(jointId: any, length: any): void
  • setDynamic(): void
  • setFixedRotation(enable: any): void
  • setFriction(friction: any): void
  • setFrictionJointMaxForce(jointId: any, maxForce: any): void
  • setFrictionJointMaxTorque(jointId: any, maxTorque: any): void
  • setGearJointRatio(jointId: any, ratio: any): void
  • setGravity(x: any, y: any): void
  • setGravityScale(gravityScale: any): void
  • setKinematic(): void
  • setLinearDamping(linearDamping: any): void
  • setLinearVelocityX(linearVelocityX: any): void
  • setLinearVelocityY(linearVelocityY: any): void
  • setMotorJointAngularOffset(jointId: any, offsetAngle: any): void
  • setMotorJointCorrectionFactor(jointId: any, correctionFactor: any): void
  • setMotorJointMaxForce(jointId: any, maxForce: any): void
  • setMotorJointMaxTorque(jointId: any, maxTorque: any): void
  • setMotorJointOffset(jointId: any, offsetX: any, offsetY: any): void
  • setMouseJointDampingRatio(jointId: any, dampingRatio: any): void
  • setMouseJointFrequency(jointId: any, frequency: any): void
  • setMouseJointMaxForce(jointId: any, maxForce: any): void
  • setMouseJointTarget(jointId: any, targetX: any, targetY: any): void
  • setPrismaticJointLimits(jointId: any, lowerTranslation: any, upperTranslation: any): void
  • setPrismaticJointMaxMotorForce(jointId: any, maxForce: any): void
  • setPrismaticJointMotorSpeed(jointId: any, speed: any): void
  • setRestitution(restitution: any): void
  • setRevoluteJointLimits(jointId: any, lowerAngle: any, upperAngle: any): void
  • setRevoluteJointMaxMotorTorque(jointId: any, maxTorque: any): void
  • setRevoluteJointMotorSpeed(jointId: any, speed: any): void
  • setRopeJointMaxLength(jointId: any, maxLength: any): void
  • setShapeScale(shapeScale: any): void
  • setSleepingAllowed(enable: any): void
  • setStatic(): void
  • setTimeScale(timeScale: any): void
  • setTimeScaleFromObject(object: any, behaviorName: any, timeScale: any): void
  • setWeldJointDampingRatio(jointId: any, dampingRatio: any): void
  • setWeldJointFrequency(jointId: any, frequency: any): void
  • setWheelJointDampingRatio(jointId: any, dampingRatio: any): void
  • setWheelJointFrequency(jointId: any, frequency: any): void
  • setWheelJointMaxMotorTorque(jointId: any, maxTorque: any): void
  • setWheelJointMotorSpeed(jointId: any, speed: any): void
  • updateFromBehaviorData(oldBehaviorData: any, newBehaviorData: any): boolean

Properties

angularDamping: any
bodyType: any
bullet: any
canSleep: any
currentContacts: any
density: any
fixedRotation: boolean
friction: any
gravityScale: any
layers: any
linearDamping: any
masks: any
name: string
polygon: any
polygonOrigin: any
restitution: any
shape: any
shapeDimensionA: any
shapeDimensionB: any
shapeOffsetX: any
shapeOffsetY: any
shapeScale: number = 1
type: string

Constructors

Generated using TypeDoc