@woosh/meep-engine
Version:
Pure JavaScript game engine. Fully featured and production ready.
28 lines • 780 B
TypeScript
export class RotationBehavior extends EntityBehavior {
static fromJSON(j: any): RotationBehavior;
/**
* Rotation per second
* @type {Vector3}
*/
axis: Vector3;
speed: number;
angle: number;
__offset: Quaternion;
/**
*
* @param axis
* @param speed
* @param angle
*/
fromJSON({ axis, speed, angle }: {
axis?: Vector3;
speed?: number;
angle?: number;
}): void;
tick(timeDelta: any): BehaviorStatus;
}
import { EntityBehavior } from "../ecs/EntityBehavior.js";
import Vector3 from "../../../../core/geom/Vector3.js";
import Quaternion from "../../../../core/geom/Quaternion.js";
import { BehaviorStatus } from "../BehaviorStatus.js";
//# sourceMappingURL=RotationBehavior.d.ts.map