Guide
Getting a vehicle to feel right
How a vehicle in R.E.P.O. is set up so that it feels controllable, given that the game leans it with speed, gives it force multipliers, and equips it with its own sounds and sparks.
Applies to
0.4.0, read from the copy of the game this site was built from (see the sources page)
Before you start
- A vehicle bought for the run
- A crew that agrees who drives
- Enough room to find out how it handles
Steps
- Expect the body to lean with speed rather than staying flat.
the lean is built from a pitch-up and a pitch-down force with a maximum for each, smoothed over time - Allow for the yaw lean when you turn.
the lean also has a yaw force and a maximum of its own - Treat the shove it gives as a setting rather than a constant.
a vehicle can be given a bumper-car force multiplier and a side-tackle multiplier - Listen for the state of the vehicle rather than watching the body.
it names its start and stop sounds, an engine pitch range, a hyper-speed loop and an airborne wind loop - Remember that the sparks and the wreck are parts of the same machine.
each side has its own spark transform, particles, collider and light, and a wreck has destruction states and an explosion point
Common mistakes
- Driving it like a car when the body is built to lean.
- Blaming the handling when the real problem is one of the multipliers.
- Leaving a wreck where it fell without taking the box it was carrying.
Related entries
How the game behavesThe lean a vehicle takes from its speedAccelerating lifts the nose and slowing drops it, each with a force and a maximum of its own.
How the game behavesThe multipliers a vehicle can be givenA vehicle can be given a multiplier for the force it applies as a bumper car.
How the game behavesThe sounds a vehicle makesA vehicle's engine has a start and a stop of its own, with a pitch that runs between a minimum and a maximum.
How the game behavesThe sparks a vehicle throwsSparks come as a left set and a right set, each with a transform of its own.
How the game behavesA vehicle that is wrecked, and the box on itA vehicle being destroyed runs through states rather than being one event.Sources
A local copy of the game, read only. Grounding for each step is on the technical reference pages; no number is estimated.