c_trace USE_POLYGON not working with animated polygons

Posted By: Sub_Game

c_trace USE_POLYGON not working with animated polygons - 06/06/10 08:32

Code:
this_distance=c_trace(vector(camera.x,camera.y,30), vector(camera.x,camera.y,-30), IGNORE_ME | USE_POLYGON | SCAN_TEXTURE);


I'm using this code to determine the surface of my ocean which is an animated model. The c_trace works fine without animation, but when I animate is only returns the original polygon positions.

How do I determine the real polygon positions?
Posted By: Harry Potter

Re: c_trace USE_POLYGON not working with animated polygons - 06/06/10 09:00

You can use c_updatehull.
It recalculates collision hulls for the given entity to match the vertex positions of a certain frame.
Posted By: Sub_Game

Re: c_trace USE_POLYGON not working with animated polygons - 06/06/10 09:14

Thanks for the quick response. I'll try it out!
Posted By: Widi

Re: c_trace USE_POLYGON not working with animated polygons - 06/06/10 11:10

Yes, that works. But c_updatehull is very slow, so you don`t can use it every frame
© 2023 lite-C Forums