Online Documentation - Statistics - FAQ - Plugin Parts (All, Dependencies) - Class hierarchy
New in Version 22.2 22.3 22.4 22.5 23.0 23.1 23.2 23.3 23.4 23.5 24.0 24.1
The list of the topics, classes, interfaces, controls, modules, global methods by category, global methods by name, screenshots, licenses and examples.
Platforms to show: All Mac Windows Linux Cross-Platform
Back to SCNPhysicsVehicleMBS class.
SCNPhysicsVehicleMBS.vehicleWithChassisBody(chassisBody as SCNPhysicsBodyMBS, wheels() as SCNPhysicsVehicleWheelMBS) as SCNPhysicsVehicleMBS
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
shared method | SceneKit | MBS Mac64bit Plugin | 20.2 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | Desktop & iOS |
chassisBody: A physics body to serve as the vehicle’s chassis.
wheels: An array of SCNPhysicsVehicleWheel objects representing the vehicle’s wheels. A vehicle must have at least one wheel.
Returns a new vehicle behavior.
Each object in the wheels array associates a node with the wheel to serve as its visual representation and defines properties for the wheel’s physical characteristics. Each wheel object must reference a unique node, which should be a child of the node containing the physics body used for the vehicle’s chassis. Typically, you load a node hierarchy representing the vehicle and all of its wheels from a scene file and then designate which nodes serve as the body and wheels.
For a behavior to take effect, you must add it to the physics simulation by calling the addBehavior: method on your scene’s SCNPhysicsWorldMBS object.
The items on this page are in the following plugins: MBS Mac64bit Plugin.