Platforms to show: All Mac Windows Linux Cross-Platform
SCNPhysicsVehicleMBS class
Super class: SCNPhysicsBehaviorMBS
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
class | SceneKit | MBS Mac64bit Plugin | 20.2 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | Desktop & iOS |
To build a vehicle, designate an SCNPhysicsBodyMBS object as its chassis and an array of SCNPhysicsVehicleWheelMBS objects as its wheels. For each wheel, you define physical characteristics such as suspension and traction, and associate a node in your scene to provide the wheel’s size and visual representation. After you construct a vehicle, you can control it in terms of acceleration, braking, and steering.
Although it’s also possible to use a set of physics bodies and joints to collectively simulate a wheeled vehicle, the SCNPhysicsVehicleMBS class implements a higher-level simulation that provides realistic vehicle behavior with more efficient simulation performance.
Subclass of the SCNPhysicsBehaviorMBS class.
- 2 properties
- property chassisBody as SCNPhysicsBodyMBS
- property speedInKilometersPerHour as Double
- 5 methods
- method applyBrakingForce(value as double, index as Integer)
- method applyEngineForce(value as double, index as Integer)
- method Constructor(chassisBody as SCNPhysicsBodyMBS, wheels() as SCNPhysicsVehicleWheelMBS)
- method setSteeringAngle(value as double, index as Integer)
- method wheels as SCNPhysicsVehicleWheelMBS()
- shared method vehicleWithChassisBody(chassisBody as SCNPhysicsBodyMBS, wheels() as SCNPhysicsVehicleWheelMBS) as SCNPhysicsVehicleMBS
Super class SCNPhysicsBehaviorMBS
- property Handle as Integer
- method Constructor Private
This class has no sub classes.
The items on this page are in the following plugins: MBS Mac64bit Plugin.
SCNPhysicsSliderJointMBS - SCNPhysicsVehicleWheelMBS