Skip to content

faceTowards beta ​

Function of @v12-engine/engine

ts
export declare function faceTowards(world: World, entity: Entity, point: Vec2, dt: number): void;

Turns a unit a little towards a point, as far as it turns in dt seconds (its type's turnRate, else the game's: RuleSettings.movement.turnRate). For orders that aim at something