Search found 31 matches

Re: Raycasting in C#

Cryengine.Physics.Raycast() I missed this :) Now everything is much simpler. private void Raycast_test(Vector3 start, Vector3 dir, float range) { Vector3 end = start + dir * range; Debugging.DebugDraw.Line(start, end, new Color(1, 0, 0), 10f); Physics.Ray ray = new Physics.Ray(); ray.Direction = di...

Re: Raycasting in C#

I tried to do some tests (based on Third Person Shooter template). private void Raycast(Vector3 start, Vector3 dir, float range) { Vector3 end = start + dir * range; CryEngine.Debugging.DebugDraw.Line(start, end, new Color(1, 0, 0), 10f); uint s_rayFlags = unchecked((uint)((int)geom_flags.geom_collt...

Go to advanced search