Skip to main content
The Deno 2 Release Candidate is here
Learn more
Module

x/caviar/src/entities/physics/PhysicsEntity.ts>PhysicsEntity

⚡ Blazing fast, modern, Game Engine powered by WebGPU for Deno and the browser
Go to Latest
class PhysicsEntity
extends Entity
import { PhysicsEntity } from "https://deno.land/x/caviar@1.0.2/src/entities/physics/PhysicsEntity.ts";

Constructors

new
PhysicsEntity(sprite: Entity, config?: Partial<PhysicsConfig>)

Properties

dx: number
dy: number
forces: Array<Vector>
mass: number
x: number
y: number