T - Type of vector, either 2D or 3D, implementing the Vector interfacepublic class SingleRayConfiguration<T extends com.badlogic.gdx.math.Vector<T>> extends RayConfigurationBase<T>
SingleRayConfiguration uses just one ray cast.
This configuration is useful in concave environments but grazes convex obstacles. It is not susceptible to the corner trap, though.
owner, rays| Constructor and Description |
|---|
SingleRayConfiguration(Steerable<T> owner,
float length)
Creates a
SingleRayConfiguration for the given owner where the ray has the specified length. |
| Modifier and Type | Method and Description |
|---|---|
float |
getLength()
Returns the length of the ray.
|
void |
setLength(float length)
Sets the length of the ray.
|
Ray<T>[] |
updateRays() |
getOwner, getRays, setOwner, setRays