CutProp beta
Interface of @v12-engine/client
ts
export interface CutPropA model placed for a cinematic alone (cut.prop): its root to move, turn and scale, a clip to play, and what takes it away
Members
place
ts
place(at: Vec2, facing?: number): void;Puts it at a spot on the ground, turned there (radians): where the props lane moves it
play
ts
play(clip: string, loop?: boolean, options?: PropClipOptions): boolean;Plays a clip of its model by its name, or by a kind of animation ('walk', 'attack': what the model maps it to); idle, walk and sleep looped are kept up (the walk at the pace it moves), the rest played once or over and over. Whether the model has it
remove
ts
remove(): void;Takes the prop out of the scene
root
ts
readonly root: {
position: {
x: number;
y: number;
z: number;
set(x: number, y: number, z: number): void;
};
rotation: {
y: number;
};
};The prop's root node: its position (in cells) and its rotation about the vertical axis (radians)