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.

Change PhysicsShape Collision Response at runtime.

Discussion in 'Physics for ECS' started by emaber, Oct 20, 2020.

  1. emaber

    emaber

    Joined:
    Aug 30, 2018
    Posts:
    4
    Hi,

    The Physic Shape authoring script shows a property "Collision Response" when editing the GameObject which I would like to change at runtime on certain events.

    Problem is that I can't seem to find the same property at runtime once the object is converted to an Entity.

    All I can find in the Entity is a PhysicsCollider which shows empty in the Entity Debugger and if I look at the class definition I can't seem to find anything related to the "Collision Reponse" or the Physics Material Template.

    Does anyone have any pointer for me?

    Thank you!
     
  2. emaber

    emaber

    Joined:
    Aug 30, 2018
    Posts:
    4