Reference · Cube engine and views
StickerSlottype
Where one sticker slot sits: its cubie's centre and the direction it faces.
Import it
import type { StickerSlot } from "@johnmorrisdotca/kyuubu";
Definition
type StickerSlot = {
centre: Vec3;
normal: Vec3;
};
Members
| Name | Type | Description |
|---|---|---|
centre | Vec3 | |
normal | Vec3 |
Examples
import type { StickerSlot } from "@johnmorrisdotca/kyuubu";
import { cubeSlots } from "@johnmorrisdotca/kyuubu";
const value: StickerSlot = cubeSlots(3).slots[0]!;
console.log(value.normal);[ 0, 1, 0 ]What it prints (run when this page was built)