UNPKG

planck

Version:

2D JavaScript/TypeScript physics engine for cross-platform HTML5 game development

19 lines (15 loc) 322 B
/* * Planck.js * * Copyright (c) Erin Catto, Ali Shakiba * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ import { Vec2 } from "../common/Vec2"; export class Velocity { /** linear */ v = Vec2.zero(); /** angular */ w = 0; }