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. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice

Question Starting objects in sleep

Discussion in 'Physics for ECS' started by GradientOGames, Dec 24, 2022.

  1. GradientOGames

    GradientOGames

    Joined:
    Feb 8, 2021
    Posts:
    28
    Using havok physics, I'd like to have all physics bodies start in sleep. This is because I want to stack an incredible amount of rigid bodies and upon playing, move slightly and expose holes. The only way I can remedy is is by increasing the solver amount, at the expense of a ridiculous amount of lag. How do I start these physics bodies in sleep? I'm new to this whole ecs and dots thing. Help is appreciated.
     
  2. GradientOGames

    GradientOGames

    Joined:
    Feb 8, 2021
    Posts:
    28
    I have found a solution! Just simply settings gravity to zero instantly puts all my objects to sleep, then when I set the gravity back, everything is all set.