NcEngine
|
Unique settings of a wheel in a WheelAssembly. More...
#include <Vehicle.h>
Public Member Functions | |
auto | IsEnabled () const -> bool |
Static Public Member Functions | |
static auto | MakeDisabled () -> WheelMount |
Public Attributes | |
int | id = 0 |
set to -1 to disable the wheel | |
Vector3 | position = Vector3::Zero() |
local space attach position relative to the owning RigidBody | |
Vector3 | up = Vector3::Up() |
local space up direction in the neutral position | |
Vector3 | forward = Vector3::Front() |
local space forward direction in the neutral position | |
Vector3 | steeringAxis = Vector3::Up() |
local space steering axis pointing away from ground | |
Vector3 | suspensionAxis = Vector3::Down() |
local space suspension direction pointing towards ground | |
Entity | target = Entity::Null() |
optional Entity to animate (can be (un)assigned freely without issuing an update notification) | |
Unique settings of a wheel in a WheelAssembly.
Wheels may be disabled on initialization by setting id to -1. They cannot be later enabled/disabled. The id may be read to check the state of the wheel, but should not otherwise be depended on (stability is not guaranteed).
An Entity may be automatically animated based on a wheel's rotation, steering angle and suspension length. When an animation target is supplied, the following is assumed: