Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upHow to make GameObject (Terrain,etc.) collides with Entities #180
Comments
|
@Matrixchung here is a link to the answer and the code used to do it, it's not a nativ solution, its using low level api https://drive.google.com/drive/folders/1xMqXOHUlsNorgt_Opymeaj4AmTUiODAu?usp=sharing |
I have tried it before in
https://docs.unity3d.com/Packages/com.unity.physics@0.3/manual/getting_started.html
But I found that if I add the Convert to Entity and Physics Shape component to Terrain , it will totally disappear while Cube or Sphere do the Conversion in a right way.
My Blocks' EntityArchetype has the following tags: Rotation,RenderBounds,Translation,RenderMesh,PhysicsCollider,LocalToWorld and PhysicsVelocity.
If I create a simple Cube which will be converted to entity, it all works fine with all blocks bouncing on the surface.But when it comes to Terrain (only without entity conversion can I see the rendered Terrain), they just go though the terrain and don't make any collisions.
Can anyone tells me how to make my entities collide with Terrain?