jumpstorm/client/lib/components/Gravity.ts
2023-07-19 20:38:24 -07:00

14 lines
347 B
TypeScript

import { ComponentNames, Component } from ".";
export class Gravity extends Component {
private static DEFAULT_TERMINAL_VELOCITY = 5;
public terminalVelocity: number;
constructor(terminalVelocity?: number) {
super(ComponentNames.Gravity);
this.terminalVelocity =
terminalVelocity ?? Gravity.DEFAULT_TERMINAL_VELOCITY;
}
}