Nebula
Loading...
Searching...
No Matches
scenequery.cc File Reference
#include "foundation/stdneb.h"
#include "PxConfig.h"
#include "physics/scenequery.h"
#include "physics/actorcontext.h"
#include "physics/utils.h"

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.