Skip to content

transform voxelcollision idea

Christian Dullweber edited this page Nov 13, 2013 · 4 revisions
WorldTransform:
    position
    rotation
    center
    scale
  cached:
    matrix() (=position * rotation * scale * -center)
    invMatrix() 

voxeltree: in modelspace!

checkCollision(VoxelCluster A, VoxelCluster B)
   transform = A.matrix()^-1 * B.matrix();
   checkCollision(A, B, transform)

checkCollision(A,B,t)
   check everything for B*t and A

--> check collision of one voxel in modelspace of the other