Skip to content

Colliders

Katy Fox edited this page Jul 4, 2021 · 14 revisions

Prefab Collider Structure

  • [colliders]
    • [collision]
      • (Component: BoxCollider) *
    • [walkable] **
      • walkable_deck
        • (Component: BoxCollider)
      • walkable_capsule
        • (Component: CapsuleCollider)
    • [items]
      • seems like children are copy of [walkable]
    • [camera dampening]
      • GameObject_1
        • (Component: BoxCollider) - unsure of purpose
    • [bogies] **
      • (Component: CapsuleCollider)
      • (Component: CapsuleCollider)

* This seems to be the general bounds of the car, enclosing the main mesh, and is used for the spawner/clear car outlines

[collision] Collider Example

** Children of the [walkable] transform define the player's collision bounds for the car; this is generally more detailed than [collision] and can include details like the buffer posts.

Walkable Collider Example

*** Bogie colliders are required for custom bogies, since they won't be copied from the base car type. These consist of two CapsuleCollider components on the [colliders].[bogies] transform. The capsules sit centered on the bogie, running transverse to the car (round ends pointing out toward rails). The radius and width are set up to match up with the wheel riding surfaces if the capsule was centered around an axle.

Demonstration of proper bogie collider shape:

Bogie Collider Shape

Proper final alignment of bogie colliders (use "Align colliders to bogies" button):

Bogie Collider Alignment

Clone this wiki locally