Instance Property

steeringAxis

The direction of the axis that the wheel pivots around to steer the vehicle.

Declaration

@property SCNVector3 steeringAxis;

Discussion

This vector is expressed in the coordinate space of the node containing the vehicle’s chassis. The default steering axis is {0.0, -1.0, 0.0}.

When you steer a wheel using the vehicle’s setSteeringAngle:forWheelAtIndex: method, the wheel pivots relative to this axis. For example, you can implement a vehicle whose rear wheels steer opposite its front wheels by reversing this vector’s direction for the rear wheels and then applying the same steering angle to all wheels.

See Also

Managing a Wheel’s Connection to a Vehicle

connectionPosition

The position of the wheel’s connection to the vehicle’s chassis.

axle

The direction of the axis that the wheel spins around to move the vehicle.