Skip to content

fix: parked cars on slopes are placed level, clipping into the road #228

Description

@nigel-hall-codes

Parked cars (baked into chunk prefabs from parking data) are spawned level/flat even when parked on a hill. On sloped streets this leaves one side of the car embedded in the road surface while the other side floats.

Expected: a parked car should conform to the road/ground slope at its position — its orientation should follow the local surface gradient (pitch/roll) so all four wheels sit on the ground, the same way the road itself conforms to the heightfield.

Context: parked cars are baked into chunk prefabs (not runtime-spawned traffic). The fix likely lives in the bake/spawn step that places parked cars, where placement currently uses a level orientation instead of sampling the heightfield slope.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions