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.
  2. Dismiss Notice

CinemachineCollider and Photon Fusion

Discussion in 'Cinemachine' started by supervelly, Nov 19, 2021.

  1. supervelly

    supervelly

    Joined:
    Dec 6, 2017
    Posts:
    16
    Hi guys

    I'm using Cinemachine with the extension CinemachineCollider
    but I also turn off Physics.autoSimulation as I'm controlling physics myself.

    because of the that the CinemachineCollider doesn't detect any collisions.
    is there a way or a method I can call when I do my own physics simulation that will
    make the CinemachineCollider detect collisions?

    thanks
     
  2. Gregoryl

    Gregoryl

    Unity Technologies

    Joined:
    Dec 22, 2016
    Posts:
    7,233
    I don't have personal experience with turning Physics.autoSimulation off. How do yo control the simulation yourself? Are you still creating colliders on your objects?
     
  3. supervelly

    supervelly

    Joined:
    Dec 6, 2017
    Posts:
    16
    The simulation is run by Physics.Simulate method on a fixed time delta.
    and yes I have colliders on the walls that are meant to collide with the cameraa
     
  4. Gregoryl

    Gregoryl

    Unity Technologies

    Joined:
    Dec 22, 2016
    Posts:
    7,233
    Then it seems to me that CinemachineCollider should work. It's just doing raycasts.