Pedestrian
public class Pedestrian : Vehicle
A pedestrian.
Important
This is a Public Preview API. It may be changed or removed at any time.-
Declaration
Swift
public init( maxSpeed: Measurement<UnitSpeed>? = PEDESTRIAN_SPEED )Parameters
maxSpeedSpecifies the max speed fot the pedestrian.
-
Copies the current Pedestrian with changes specified in build closure
Declaration
Swift
public func copy(build: (inout Builder) -> ()) -> PedestrianParameters
buildThis closure allows for change of Pedestrian values
Return Value
Pedestrian with the changes set on the closure
-
The
Buildercreates a new instance ofPedestrianwith modified fields.Declaration
Swift
public struct Builder
Pedestrian Class Reference