ziggi / FCNPC

FCNPC - Fully Controllable NPC
Apache License 2.0
139 stars 31 forks source link

Help with NPCs #279

Closed AUDFAST closed 1 year ago

AUDFAST commented 1 year ago

I need to make the NPC die when he was hit by a car. Please help, I will be very grateful

ziggi commented 1 year ago

It's actually is a pretty performance affecting task. Due to the fact that NPCs don't have their own physics, you have to calculate it by yourself. So, you need to check the position of each NPC with the position of each car as frequent as possible.