epha
04-12-2008 02:29:11
Hi,
In my 3d world there are ragdolls which are controlled by physics and (non newton)characters that are moved using ogre functions; I want to raycast and to be able to detect both newton bodies and ogre entities . I think I have 2 options:
1. use OGREs own raycasting which the forums say is cpu expensive and slow. ( I need to be accurate enough to hit the mesh and get a bone from the skeleton corresponding to the hit polygon )
or 2. create collision objects for the entities and destroy them every time I raycast,
both of these seem unsatisfactory, is there a better way ?
( I use mac osx, so I dont think opcode works fro me.)
thanks in advance!
epha
In my 3d world there are ragdolls which are controlled by physics and (non newton)characters that are moved using ogre functions; I want to raycast and to be able to detect both newton bodies and ogre entities . I think I have 2 options:
1. use OGREs own raycasting which the forums say is cpu expensive and slow. ( I need to be accurate enough to hit the mesh and get a bone from the skeleton corresponding to the hit polygon )
or 2. create collision objects for the entities and destroy them every time I raycast,
both of these seem unsatisfactory, is there a better way ?
( I use mac osx, so I dont think opcode works fro me.)
thanks in advance!
epha