[ODE] Ray-TriMesh Collider
Vadim Macagon
vadim_mcagon at hotmail.com
Sat Aug 9 02:35:02 2003
This is a multi-part message in MIME format.
------=_NextPart_000_022F_01C35EBE.B6C5CF40
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: 7bit
Hehe, lots of emails from me today.
I added an extra parameter to the dGeomRay*Params(), which gives you finer
control of the proccess. I think the firstContact parameter was being used
incorrectly (so I fixed that).
Aside from that I've also changed the way the contact point is generated for
ray/mesh collision (collision_trimesh_ray.cpp), as far as I know - knowing
the T value (along the line) is sufficient to compute the point of
contact... so I didn't see the point of using barycentric coordinates (which
amounts to more computation) to work out the same thing. Likewise I don't
quite understand why the T value was computed again, since OPCODE already
did it and stored it in Faces[i].mDistance.
Patches are attached (hopefuly they'll make it into CVS in a couple of
months :P).
Cheers,
Vadim.
------=_NextPart_000_022F_01C35EBE.B6C5CF40
Content-Type: application/x-zip-compressed;
name="ray_mesh_patches.zip"
Content-Transfer-Encoding: base64
Content-Disposition: attachment;
filename="ray_mesh_patches.zip"
UEsDBBQAAAAIAOKqCS+VG1aVaAEAAE4DAAARAAAAcmF5X2NvbGxpc2lvbi50eHSlklFLwzAQx58t
9Dv80Rdt161VnLYiTCdOfRL1XbL0ukazRJJ0uG9vthbBjYlgSHJccve7u+TuVUmfBYTisilpoP3i
WkphhVb9Ogwu/z/C4Gn8jEpIKjDgC2u0dgP9QaqLtyN2bxEGhpwRtBBqBuPF6gJZfxgGpagqJA0S
41X8yDhJkl3l7GV4aCSO0/QE6VmRDYs0R5L6sbemxnG80zXHVTPrXPMiy4vTYesaBqMRkuw4750j
bsVoFAZAhJeaLKGSbGbBDIE3xpBycgmt/Ka0E5xKTJdwNcGXOidbt9WUZHqYEmeNpRbmTZbgTGHO
3gnMizdtsHoI8lBOdmVhqL+2Hvh3WGhRopyQnj+x5TO5R2bY3OJwfXR/g1nPF+twK4x1Y60c4649
uWb8vWKcxo2URxebpMlOUrSNijZZ8R+zqrZQXGpL1t2JTp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