Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.

Collider params changing forward vector

Discussion in 'Physics for ECS' started by snacktime, Aug 3, 2020.

  1. snacktime

    snacktime

    Joined:
    Apr 15, 2013
    Posts:
    3,351
    So I was using a cylinder shape with a non uniform scale but it was unnecessarily complicating some transformations. So I just duplicated the cylinder mesh using existing tools to the right scale. But after some wtf moments I figured out doing so messed up the collider orientation. LocalToWorld Forward is like 30 degrees off from the collider forward shown in the physics debug display. Must be some logical explanation but I'm missing it.
     
  2. snacktime

    snacktime

    Joined:
    Apr 15, 2013
    Posts:
    3,351
    Error on my end where the scale made the error not noticeable.
     
    petarmHavok likes this.