Advanced Suspension Maker SDK

Build custom, fully-animated suspension for CarX Drift Racing Online

Hub Arm Shock Axle

Get started Browse tutorials View on GitHub

Driveshafts, halfshafts & prop shaft (AWD)

The spinning driveline — the parts nobody usually animates. One role, Driveline, covers all of it:

For AWD, you add one shaft per driven output — a rear prop shaft and a front one, plus front halfshafts — each reading its own driven wheel. It’s a visual layer: it spins off a real wheel’s roll but adds no physics.

Driveline

Parts → roles

Real part Marker Role Settings
axle shaft / halfshaft (each side) RL_Halfshaft / RR_Halfshaft Driveline Inner Pivot = RL_DiffJoint · Outer Target = RL_ShaftEnd (on the hub) · Telescopes ON · Spin Source = RL · Spin Axis = down the shaft
where the shaft meets the hub RL_ShaftEnd (no component) a marker parented under that side’s Hub
the diff-side joint (fixed) RL_DiffJoint (no component) a marker on the chassis / diff
centre prop shaft PropShaft Driveline Outer Target = empty · Spin Source = RL (a driven wheel) · Spin Axis = down the shaft
front prop shaft (AWD only) PropShaftFront Driveline Outer Target = empty · Spin Source = FL · Spin Axis = down the shaft

Hierarchy

Rear
├── PropShaft            Driveline  (no target — spins · Source = RL)
├── RL
│   ├── RL_Hub               Hub · SteerCamber
│   │   └── RL_ShaftEnd      (no component — the shaft's hub end)
│   ├── RL_DiffJoint         (no component — fixed inner joint)
│   └── RL_Halfshaft         Driveline  (Pivot = RL_DiffJoint → Target = RL_ShaftEnd · Source = RL)
└── RR                       ... mirror of RL

A prop shaft has no hub to aim at, so “Build Rig Hierarchy” parks it on Front/Rear (like an axle). A halfshaft aims at a hub, so it lives in its corner like an arm.

What makes it different

Setup, step by step

  1. Add an empty under each hub where the shaft plugs in: RL_ShaftEnd, RR_ShaftEnd.
  2. Add an empty at each diff-side joint (RL_DiffJoint, …) — on the chassis, it doesn’t move much.
  3. Put a KSuspBone on each halfshaft mesh, Role = Driveline. Inner Pivot = the diff joint, Outer Target = the hub-side marker, Telescopes ON, Spin Source = that side’s wheel.
  4. Set Spin Axis to the shaft’s local long axis (aim it down the shaft — e.g. 0,0,1).
  5. For the prop shaft: KSuspBone on the mesh, Role = Driveline, leave Outer Target empty, pick a driven Spin Source, set Spin Axis down the shaft.
  6. (AWD) repeat step 5 for the front prop shaft and add front halfshafts with FL/FR sources.
  7. Build Rig HierarchyBake .ksusp. The report should list … and N driveline(s).

Type gotchas