Author Topic: Collisions do not refresh  (Read 54 times)

soultia2020

  • Newbie
  • *
  • Posts: 15
    • View Profile
Collisions do not refresh
« on: December 31, 2020, 01:03:57 PM »
When I use a loop call voxeldestroy to destroy a large number of voxels at a certain height (around 64), collider does not refresh.
Code
if (Input.GetKeyDown(KeyCode.V))
{
    for (int x = -30; x < 30; x++)
    {
        for (int z = -30; z < 30; z++)
        {
            for (int y = -1; y < 30; y++)
            {
                Vector3 point = transform.position + new Vector3(x, y, z);
                if (VoxelPlayEnvironment.instance.GetVoxel(point).isEmpty == false) VoxelPlayEnvironment.instance.VoxelDestroy(point);
            }
        }
    }
}

Attach my project, play Demo1 scene, then press the V key, and the movement will be blocked by the air wall

https://drive.google.com/file/d/1DGfNeRtlNbXb2rHdKi_Ilv-rilAsT7om/view

Kronnect

  • Administrator
  • Hero Member
  • *****
  • Posts: 6521
    • View Profile
Re: Collisions do not refresh
« Reply #1 on: January 06, 2021, 01:39:53 PM »
Thanks for the project. Issue now fixed in latest beta.

soultia2020

  • Newbie
  • *
  • Posts: 15
    • View Profile
Re: Collisions do not refresh
« Reply #2 on: January 07, 2021, 05:39:28 AM »
Thanks :)