wheel_mount

One wheel of a vehicle. On top of the kinetic SCADA surface, exposes independent script overrides for steering and braking (each replacing the corresponding redstone read), plus suspension and tire reads. To drive a 4-wheeled vehicle from one computer: assemble all four mounts as separate peripherals (e.g. via peripheral.find or named modems) and call setSteering / setBrake on each with the same input. Drive force itself comes from the Create kinetic network feeding the axles — pair with speed_controller.

setSteering(value)Install a steering override.
clearSteering()Release the steering override; the wheel resumes reading side redstone.
getSteering()
getSteeringAngle()
isSteeringOverridden()
setBrake(value)Install a brake override.
clearBrake()Release the brake override; the wheel resumes reading top-redstone.
getBrake()
isBrakeOverridden()
hasTire()
getTireRadius()
getExtension()
getAngularVelocity()
getTouchingFriction()
isLiftedUp()
getSelfId()Get this block's id.
getSourceId()Get the id of the block immediately driving this one, or nil if this block has no source.
getSubnetworkAnchorId()Get the id of this block's speed-zone anchor — the gearshift / clutch / speed controller / generator that defines the start of this speed zone.
getNetworkId()Get the id of this block's kinetic network.
getKind()Get this block's role on the kinetic graph: one of "generator", "split_shaft", "consumer", or "passthrough".
getSpeed()Get the local rotational speed at this block.
hasSource()Check whether this block is connected to a kinetic source.
isOverstressed()Check whether the block's network is overstressed.
getStressImpact()Get the stress impact of this block on its network — how much stress it draws while running.
getStressContribution()Get this block's contribution to its network's stress capacity.
setSteering(value)Source

Install a steering override. Replaces the side-redstone read so the wheel turns by value × 30° regardless of redstone. Calling setSteering on every wheel of a vehicle with the same value gives parallel steering. For real Ackermann geometry the caller computes per-wheel angles and writes them individually.

Parameters

  1. value number Steering input in [-1, 1]. Out-of-range values are clamped.
clearSteering()Source

Release the steering override; the wheel resumes reading side redstone.

getSteering()Source

Returns

  1. number The currently-applied steering input in [-1, 1]. When override is active, this is the script value; otherwise it is the live redstone differential normalized to the same range.
getSteeringAngle()Source

Returns

  1. number Current steering angle in degrees, computed from the active signal. Maxes at ±30° (the wheel's hard-clamped range).
isSteeringOverridden()Source

Returns

  1. boolean True when the steering input is currently script-driven.
setBrake(value)Source

Install a brake override. Replaces the top-of-block redstone read on both server-side physics and the client-side visual.

Parameters

  1. value number Brake strength in [0, 1]. Out-of-range values are clamped.
clearBrake()Source

Release the brake override; the wheel resumes reading top-redstone.

getBrake()Source

Returns

  1. number The currently-applied brake strength in [0, 1].
isBrakeOverridden()Source

Returns

  1. boolean True when the brake input is currently script-driven.
hasTire()Source

Returns

  1. boolean True when a tire item is installed in the mount.
getTireRadius()Source

Returns

  1. number The radius of the installed tire, in blocks; 0 when no tire is installed.
getExtension()Source

Returns

  1. number Live suspension extension distance. Larger values mean the wheel hangs lower below its mount; small (and clamped to 0.5 when no tire is loaded) means compressed against the chassis.
getAngularVelocity()Source

Returns

  1. number Wheel's angular velocity in radians per tick.
getTouchingFriction()Source

Returns

  1. number Friction coefficient of the block currently under the wheel. 1.0 when airborne or on a "normal" block; lower on ice and similar low-friction surfaces.
isLiftedUp()Source

Returns

  1. boolean True when the wheel is detached from terrain (suspension travel exceeded). A lifted wheel has no traction.
getSelfId()Source

Get this block's id. Other peripherals' getSourceId or getSubnetworkAnchorId return this same id when they refer to this block.

Returns

  1. string The block's id.
getSourceId()Source

Get the id of the block immediately driving this one, or nil if this block has no source.

Returns

  1. string The parent's id, or nil.
getSubnetworkAnchorId()Source

Get the id of this block's speed-zone anchor — the gearshift / clutch / speed controller / generator that defines the start of this speed zone. Two blocks share an anchor iff they're in the same speed zone. A generator or split-shaft returns its own getSelfId.

Returns

  1. string The anchor block's id, or nil.
getNetworkId()Source

Get the id of this block's kinetic network. Same value for every block on the same network regardless of how many speed zones lie between them. Nil if this block isn't on a network.

Returns

  1. string The network id, or nil.
getKind()Source

Get this block's role on the kinetic graph: one of "generator", "split_shaft", "consumer", or "passthrough".

Returns

  1. string The role string.
getSpeed()Source

Get the local rotational speed at this block. Signed; same value across a speed zone, changes across a split-shaft.

Returns

  1. number The local speed.
hasSource()Source

Check whether this block is connected to a kinetic source.

Returns

  1. boolean True if a source is connected.
isOverstressed()Source

Check whether the block's network is overstressed.

Returns

  1. boolean True if overstressed.
getStressImpact()Source

Get the stress impact of this block on its network — how much stress it draws while running. Speed-dependent; zero for sources and pure conduit blocks. Matches the "Stress Impact" value shown by goggles.

Returns

  1. number The stress impact.
getStressContribution()Source

Get this block's contribution to its network's stress capacity. Non-zero for sources only. Parallel to getStressImpact (per-block draw) and distinct from Create_Stressometer#getStressCapacity, which reports the network total.

Returns

  1. number The per-block stress contribution.