@woosh/meep-engine
Version:
Pure JavaScript game engine. Fully featured and production ready.
23 lines (19 loc) • 518 B
JavaScript
import Vector2 from "../../../core/geom/Vector2.js";
import { current_time_in_seconds } from "../../../core/time/current_time_in_seconds.js";
export class LocationalInteractionMetadata {
/**
* In seconds
* @type {number}
*/
timestamp = current_time_in_seconds()
position = new Vector2()
/**
*
* @param {Vector2} p
*/
static from(p) {
const r = new LocationalInteractionMetadata();
r.position.copy(p);
return r;
}
}