0 votes
by
edited by

How can i configure a trailer system with Edy's Vehicle Physics? Like truck semi-trailer or tractor trailer.

1 Answer

0 votes
by
  1. Configure truck and semi-trailer as separate vehicles, each one configured with its  own VehicleController component.
  2. Ensure the colliders of both vehicles leave room enough at the articulation point to rotate in the X and Y axis without contacting.
  3. Use a ConfigurableJoint component to link both vehicles using the trailer junction point (fifth wheel) as anchor for both parts.
  4. Configure the ConfigurableJoint constraints as follows:
  • All linear constraints (X, Y, Z Motion) as Locked.
  • Angular constraints X, Y (Angular X, Y Motion) as Free.
  • Angular constraint Z (Angular Z Motion) as Locked.
Ensure that both attachment points (anchors) are at the same world position before configuring the constraints in the joint component. Otherwise, both vehicles will jump suddenly to place the anchors in the same world position.
by
Adding a VechicleController on the trailer also add the engine and many other controls to the trailer, and I cannot drive the vehicle anymore.
Do you have some example, video or screenshot of a correct truck-trailer build?

Thanks!
by
The trailer needs the brakes only, so all values that refer to the drive forces may be zero, and the features exclusive of active vehicles can be disabled (driving aids, steering...).
...