Options
All
  • Public
  • Public/Protected
  • All
Menu
classdesc

Creates a DuckEngine PhysicsServer

description

The PhysicsServer Class. Handles all Physics updates

since

2.0.0

Hierarchy

  • PhysicsServer

Index

Constructors

Properties

Methods

Constructors

constructor

Properties

game

game: Game
memberof

PhysicsServer

description

Game instance

since

2.0.0

scene

scene: Scene
memberof

PhysicsServer

description

Scene instance

since

2.0.0

Methods

__tick

  • __tick(): void
  • memberof

    PhysicsServer

    description

    Uses PhysicsServer.Scene.physicsList and filters all enabled PhysicsBodies and calls PhysicsBody._update, PhysicsBody.hitbox._update, and PhysicsBody.collider._update

    DO NOT CALL MANUALLY! CALLED IN SCENE.__TICK

    since

    2.0.0

    Returns void

Generated using TypeDoc