Nebula
Loading...
Searching...
No Matches
scenequery.h File Reference
#include "core/types.h"
#include "physicsinterface.h"

Go to the source code of this file.

Classes

struct  Physics::QueryFilter
struct  Physics::RaycastHit
 A raycast hit. More...
struct  Physics::ShapeCastHit
 A shape cast hit. More...
struct  Physics::QueryShape
 A shape a query sweeps through the scene. More...

Namespaces

namespace  Physics
 Diverse functions for manipulating physics actors.

Functions

bool Physics::Raycast (IndexT scene, const Math::point &origin, const Math::vector &direction, float maxDistance, Physics::RaycastHit &out, const Physics::QueryFilter &filter)
 Closest hit along a ray. The direction has to be normalized. False when nothing was hit.
bool Physics::SegmentCast (IndexT scene, const Math::point &from, const Math::point &to, Physics::RaycastHit &out, const Physics::QueryFilter &filter)
 Closest hit along a segment. The direction is the segment itself.
bool Physics::ShapeCast (IndexT scene, const Physics::QueryShape &shape, const Math::vector &direction, float maxDistance, Physics::ShapeCastHit &out, const Physics::QueryFilter &filter)
 Closest hit along a swept shape. The direction has to be normalized. False when nothing was hit.
bool Physics::ShapeCastAny (IndexT scene, const Physics::QueryShape &shape, const Math::vector &direction, float maxDistance, Physics::ShapeCastHit &out, const Physics::QueryFilter &filter)
 First hit found along a swept shape, which is not necessarily the closest.
bool Physics::SphereCast (IndexT scene, const Math::point &center, float radius, const Math::vector &direction, float maxDistance, Physics::ShapeCastHit &out, const Physics::QueryFilter &filter)
 Closest hit along a swept sphere.
bool Physics::SphereCastAny (IndexT scene, const Math::point &center, float radius, const Math::vector &direction, float maxDistance, Physics::ShapeCastHit &out, const Physics::QueryFilter &filter)
 First hit found along a swept sphere. See Physics::ShapeCastAny.
bool Physics::BoxCast (IndexT scene, const Math::transform &pose, const Math::vec3 &halfExtents, const Math::vector &direction, float maxDistance, Physics::ShapeCastHit &out, const Physics::QueryFilter &filter)
 Closest hit along a swept box. The pose is the box at the start of the cast.
bool Physics::BoxCastAny (IndexT scene, const Math::transform &pose, const Math::vec3 &halfExtents, const Math::vector &direction, float maxDistance, Physics::ShapeCastHit &out, const Physics::QueryFilter &filter)
 First hit found along a swept box. See Physics::ShapeCastAny.