Interface ControllerControllerData

Slightly confusing naming quirk: There's controller objects, which are a feature of the blueprint format, and then there's an actual Scrap Mechanic part named 'Controller'.

Hierarchy

Properties

controllers?: { frames: { setting: number }[]; id: number; index: number }[]

Array of data for piston length sequences. Only present if at least one piston is connected to the Controller.

id: number

Identifier for this controller object.

joints?: { endAngle: number; frames: { targetAngle: number }[]; id: number; index: number; reverse: boolean; startAngle: number }[]

Array of data for rotation sequences of bearings. Only present if at least one bearing is connected to the Controller.

playMode: 0 | 2

The play mode of the controller. 0 = default, 2 = loop. playMode=1 was originally the forward-reverse loop setting, but for unknown reasons, it was removed before launch.

timePerFrame: number

The time between each frame in the sequence. In-game this can only be set in a range from 5 seconds to 1 second, but in blueprint files the only limit is how fast the strength of the bearing can keep up.

Generated using TypeDoc