Method GetObjectsInShapeByType
GetObjectsInShapeByType<T>(Shape, float, bool, Vector3)
Gets all objects in a shape at this location of the specified type.
public IEnumerable<T> GetObjectsInShapeByType<T>(Shape shape, float size, bool losCheck, Vector3 origin = default) where T : NwGameObject
Parameters
shapeShapeThe search shape to use.
sizefloatThe size of the shape (e.g., radius for spheres).
losCheckboolWhether to enforce line of sight.
originVector3Optional origin offset for the shape.
Returns
- IEnumerable<T>
All matching objects of type
Tfound within the shape.
Type Parameters
TThe game object type to return.