voxcraft / voxcraft-sim

a GPU-accelerated voxel-based physics engine

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Able to rotation of a singleton to provide more possibility for attachment

liusida opened this issue · comments

Now attachment only happens between voxels with similar orientation. That's not enough.

But I failed to do arbitrary attachment last week, so a possible mediator is only rotating singletons to make things align during checking for attachment.

Start branching out and working on this.

Instantaneous rotation of voxel singletons / pairs works very well using the detach-rotate-reattach method. Because everything is axis aligned, the same rotation method could be applied to all attachments (not just pairs, not just 2d bodies--all bodies!). Right @liusida?

The problem is that including rotations slowed the evaluations of the bulldozers too much (10x slower). Is it possible to speed it up?>