menajev
Member
|
Animation and cut point.
Is there any way to get precision mesh cut point if mesh is animated? AFAIK neither phys body nor mesh cuts doesn't operate with skeleton animation.
|
|
05-09-2010 09:11 AM |
|
Esenthel
Administrator
|
RE: Animation and cut point.
normally you do approximation (use few bone shapes, animate them, and do collision on bones only)
for mechs you can use few boxes, transform each by corresponding skeleton matrix.
and do collision detection on the boxes.
you can do precise mesh calculation for animated meshes, but its slow
in that case you need to copy mesh, animate it Mesh::animate, and do collision detection on it
|
|
05-09-2010 10:44 AM |
|
menajev
Member
|
RE: Animation and cut point.
It needn't to be fast as I decided to make simple phys body (e.g. box) and if Phys.ray hit box - check, if it really hit the mech.
Mesh::animated? Can't find anything like that.
|
|
05-09-2010 11:09 AM |
|
Esenthel
Administrator
|
RE: Animation and cut point.
check MeshBase::animate
|
|
05-09-2010 12:21 PM |
|