Javascript API
interfaces
Physicseffect

Interface: PhysicsEffect

Hierarchy

Properties

angularDamping

angularDamping: number


angularVelocity

angularVelocity: number


bounciness

bounciness: number


collisionGroup

collisionGroup: number


density

density: number


endcontact

endcontact: "endcontact"


fixedRotation

fixedRotation: boolean


forceAngle

forceAngle: number


forceStrength

forceStrength: number


friction

friction: number


gravityScale

gravityScale: number


highSpeedDynamicCollisions

highSpeedDynamicCollisions: boolean


id

Readonly id: number

Every Effect is assigned a unique numerical id that cannot be changed.

Inherited from

Effect.id


impulseAngle

impulseAngle: number


impulseOffsetX

impulseOffsetX: number


impulseOffsetY

impulseOffsetY: number


impulseStrength

impulseStrength: number


impulseStrengthX

impulseStrengthX: number


impulseStrengthY

impulseStrengthY: number


linearDamping

linearDamping: number


linearVelocityAngle

linearVelocityAngle: number


linearVelocityStrength

linearVelocityStrength: number


linearVelocityX

linearVelocityX: number


linearVelocityY

linearVelocityY: number


mass

Readonly mass: number


physicsType

physicsType: "none" | "dynamic" | "static" | "kinematic"


rotationForce

rotationForce: number


rotationImpulse

rotationImpulse: number


sensor

sensor: boolean


shape

shape: "box" | "circle"


shapeSize

shapeSize: number

Events

begincontact

begincontact: "begincontact"