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

Cinemachine Collider: Use My Own Raycast And Call Collider Move Function

Discussion in 'Cinemachine' started by usernameHed, Apr 14, 2019.

  1. usernameHed

    usernameHed

    Joined:
    Apr 5, 2016
    Posts:
    93
    Hello, I have a cinemachine Collider in my virtual Camera, and I have 2 situations:
    - first, i would like to have a radius on the raycast used by the cinemachineCollider (not the radius of the camera, the radius of the raycast)
    - second, the camera zoom too much: for my game, i hide the backFace of the mesh, so how can I say to my cameraCollider to zoom, but not at the exact position, just back a little bit ?

    I make a separate script, and on that i'm doing my own sphereCast for collision detection.
    But i would like to use the cinemachine Collider function who zoom and dezoom nicly.

    Thanks !