Class VehicleWheelCollision

Struct containing data about the collision of a vehicle wheel with the ground.

Constructors

Properties

_collider: Collider
_collisionPoint: Vector3
_lateralDirection: Vector3
_longitudinalDirection: Vector3
_normal: Vector3
_velocity: Vector3

Accessors

  • get collider(): Collider
  • Collider the wheel collided with.

    Returns Collider

  • set collider(value): void
  • Parameters

    Returns void

  • get collisionPoint(): Vector3
  • World space point of the collision.

    Returns Vector3

  • set collisionPoint(value): void
  • Parameters

    Returns void

  • get lateralDirection(): Vector3
  • Sideways direction of the wheel along the ground.

    Returns Vector3

  • set lateralDirection(value): void
  • Parameters

    Returns void

  • get longitudinalDirection(): Vector3
  • Forward direction of the wheel along the ground.

    Returns Vector3

  • set longitudinalDirection(value): void
  • Parameters

    Returns void

  • get velocity(): Vector3
  • Velocity of the wheel at the collision point in world space. Does not take into account the wheel rotation speed.

    Returns Vector3

  • set velocity(value): void
  • Parameters

    Returns void

Methods