Problems related to Wall Dist/Force

Hello. I’m using 5.1.1. RichAI + RecastGraph

Is there a reason to fix the y position to 0 when doing FindWalls?
Because of this, errors occur when measuring distances, making the Wall Dist value useless.

Thank you.

void FindWalls (int nodeIndex, List<Vector3> wallBuffer, Vector3 position, float range) {
	if (range <= 0) return;

	bool negAbort = false;
	bool posAbort = false;

	range *= range;

	position.y = 0;

Hi

That does indeed seem very sketchy.

I have fixed it locally now, and the fix will be included in the next update.

However, for the most part the FollowerEntity component is now recommended instead of the RichAI component. Try it out. It’s more robust in many ways.

1 Like

Thank you for the answer.

I am hesitant to use FollowEntity because of this issue.

I would appreciate it if you could review it.

1 Like