Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

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,356
    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,356
    Error on my end where the scale made the error not noticeable.
     
    petarmHavok likes this.