Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Can you white list the .touched event?

Asked by 6 years ago

I have a game with many slow moving projectiles. There are also many objects that are in the line of sight of these projectiles that they intersect with tripping the event that are ignored. I am wondering if I can set a few objects that will register the .touched event. I don't believe .magnitude will solve my issue as even 50 projectiles, with 50 walls on screen is still 50*50 = 2500 tests at the slowest 5 times per second is 12500 computationally intense tests a second.

0
IF STATEMENTS Radstar1 270 — 6y
0
^ DaWarTekWizard 169 — 6y

1 answer

Log in to vote
0
Answered by 6 years ago

Solved the issue by creating a plain in the world that replicated all of the objects that are white listed and calculated the collisions there.

Ad

Answer this question