Another old topic: "bullet-through-paper " effect 2003-12-09 - By Mark Hill
Back Hi Geng,
You could try raycasting from well behind the character ( at least your maximum distance travelled per update at maxspeed...) and take account of the fact that your ray will pass through your character model by increasing the number of models to return from the modelsUnderRay() call, although your best bet would be to removeFromWorld() the character before casting the ray, then use addToWorld() to restore it once the raycast code is done...
HTH :)
Mark Hill xonko interactive http://www.xonko.com
On 09/12/2003, at 5:34 PM, Geng Wang wrote:
> Basically I am using > modelsUnderRay+boundingBox to detect collision. > > The difficult part I found is when the character moves > at a ralatively high speed (like in a running > movement) and you happen to play the movie in a > ralatively slow machine, the character will go through > the wall before the code can detect collision with the > wall. I think there are some solutions to this > "bullet-through-paper' effect out there.
__ ____ ____ ____ ____ ____ ____ ____ ____ ____ Dir3d-l mailing list Dir3d-l@(protected) http://nuttybar.drama.uga.edu/mailman/listinfo/dir3d-l
|
|