Polarith AI
1.8

◆ CalculatePlane()

override void CalculatePlane ( )
protectedvirtual

Overrides Avoid.CalculatePlane.

Instead of constructing a plane perpendicular to the percept direction, this method constructs a tangent plane based on a capsule, whereby it is defined by the extents of the percept's bounding box. The tangent plane is constructed at the closest point on the capsule relative to the agent. The results are written to Avoid.planeDirection1 and Avoid.planeDirection2.

Reimplemented from Avoid.

Imprint