How to Line Trace in all directions?


Also, the meshes are not keeping length as long as the line trace.
They shift their length size around inappropriately depending on location, especially if i go into narrow area like the alley on the right:

the meshes should be pouring out the alley onto the wall

It looks logical, but I have this connected

Because that is where the trace starts.

The pic looks good to me, try looking at it with the traces enable again. Every trace should have a cone.

I tried your connection but its still giving me the weird narrow alley bug and also still not showing meshes on all the traces (I checked with traces on). If anything I’m getting this bug, when I’m still or going forward im missing traces above me but when I go backward it shows up:


and still clips through corners

Reduce the number to about 20, there’s no point in trying to debug it and possibly introduce other problems at the same time.

With 20 all the cones should line up exactly with the line traces.

Even with 20, its still wonky. Some are missing, some flicker in and out, some are ghosting:


and thats not enough resolution of points to do an antimask, Im startin to think this is futile :expressionless:

gimme 5…

wait is there a way to render the entire screen black except where a traces touches?

There’s something related to character rotation, I’m working it out…

ok but is there a way to NOT render an area unless its being touched/impacted by a trace? Like what if each trace impact point render a small area around itself and nothing else?

Ok, was a slight bug to do with rotation :slight_smile:

FIXED!

New code

Stress test

test

1 Like

yeah see youre missing a bunch, its glitchy, thats the problem. But listen, is there a way to render the whole screen black except for the trace impact point?

I’m not missing any. You only get a cone for a line trace that HITS :slight_smile:

I still am, I did the fix

wait hold on

Ok yes that did it! I still have some edge case issues but that fixed the basic thing.


sometimes it stays on the previous impact point until I move a bit and it fidgets into position of the new point

Sounds better, but still a bit weird. The cones should totally fit the traces, every frame ( unless you put 1000 in a something… )

I made the trace length longer, and I’m not getting any stray poles

It happens on movement, when I’m walking forward and backward, under an object or by an open door. But so do you think we can somehow only render a small area* around the the impact points and nothing else?

A small what?

PS What’s your machine spec?

1 Like

small area, sorry

my machine is pretty beefy

Like a little sphere?