mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2026-02-26 19:51:47 +08:00
21 lines
677 B
TypeScript
21 lines
677 B
TypeScript
|
|
/** Represents the Orbit behavior.
|
|
* @see {@link https://www.construct.net/make-games/manuals/construct-3/scripting/scripting-reference/behavior-interfaces/orbit | IOrbitBehaviorInstance documentation } */
|
|
declare class IOrbitBehaviorInstance<InstType> extends IBehaviorInstance<InstType>
|
|
{
|
|
setTargetPosition(x: number, y: number): void;
|
|
getTargetPosition(): Vec2Arr;
|
|
pin(inst: IWorldInstance): void;
|
|
speed: number;
|
|
acceleration: number;
|
|
rotation: number;
|
|
offsetAngle: number;
|
|
primaryRadius: number;
|
|
secondaryRadius: number;
|
|
isMatchRotation: boolean;
|
|
totalRotation: number;
|
|
totalAbsoluteRotation: number;
|
|
getDistanceToTarget(): number;
|
|
isEnabled: boolean;
|
|
}
|