Skip to content

PartProfile

public sealed class PartProfile

Namespace Chassis.Api

A lid or a wiper in the model that Chassis moves.

public string Name = string.Empty

Name the API and the debug console use, e.g. “bonnet”, “boot”, “wiper_l”.

public string Kind = "lid"

“lid”: opens on request or with the storage. “wiper”: sweeps while it rains and the vehicle runs.

public string Path = string.Empty

Pivot below the frame at the hinge or axle; a single name is searched in the whole frame.

Value A path like “Body/BootHinge” or one name like “BootHinge”.

public Vector3 Axis = Vector3.right

Hinge or axle in the pivot’s own space at rest.

Value A direction: on a pivot turned like the car, (1, 0, 0) for a bonnet or boot hinged across it and (0, 0, 1) for a wiper axle facing forward.

public float Angle = 60f

Lid: open angle. Wiper: sweep. In degrees.

public float Seconds = 1.2f

Lid: seconds to open or close. Wiper: seconds per stroke in light rain.

public float FastSeconds = 0.8f

Wiper: seconds per stroke in heavy rain.

public float Sign

+1 or -1 for the turning direction; 0 works it out so the part lifts.

public string Storage = string.Empty

Lid: opens while the vehicle’s storage is open from this end, “front” or “rear”; empty never.