Nebula
Loading...
Searching...
No Matches
Physics::QueryShape Struct Reference

#include <scenequery.h>

Detailed Description

A shape a query sweeps through the scene.

Only the parameters matching the type are read.

Note
This is not a collider. It has no material, no resource and no entity, and it is not in the shape pool, so a hit names the shape of the body it touched and never the shape that was cast.
Only the position and the orientation of the transform are used. A query shape has no scale.

Public Attributes

Physics::ColliderType type = Physics::ColliderType_Sphere
Math::transform transform
 world pose of the shape at the start of the cast
Math::vec3 boxExtents = Math::vec3(0.5f, 0.5f, 0.5f)
float sphereRadius = 0.5f

Member Data Documentation

◆ boxExtents

Math::vec3 Physics::QueryShape::boxExtents = Math::vec3(0.5f, 0.5f, 0.5f)

◆ sphereRadius

float Physics::QueryShape::sphereRadius = 0.5f

◆ transform

Math::transform Physics::QueryShape::transform

world pose of the shape at the start of the cast

◆ type

Physics::ColliderType Physics::QueryShape::type = Physics::ColliderType_Sphere

The documentation for this struct was generated from the following file: