![]() |
VR-Forces Developer's Guide
|
Contains all information about a projectile collision event.
Public Member Functions | |
| DtImpactResult () | |
| virtual | ~DtImpactResult () |
| virtual const dvec3 & | position () const |
| virtual const dvec3 & | normal () const |
| virtual double | distance () const |
| virtual void * | hitObject () const |
| virtual bool | hasHit () const |
| virtual void | setPosition (const dvec3 &position) |
| virtual void | setNormal (const dvec3 &normal) |
| virtual void | setDistance (double distance) |
| virtual void | setHitObject (void *hitObject) |
| virtual void | setHasHit (bool hasHit) |
Protected Attributes | |
| dvec3 | myPosition |
| dvec3 | myNormal |
| double | myDistance |
| void * | myHitObject |
| bool | myHasHit |
| makVrv::DtImpactResult::DtImpactResult | ( | ) |
Default constructor.
|
virtual |
Destructor.
|
virtual |
Returns the impact position in world space.
|
virtual |
Returns the surface normal at the impact point.
|
virtual |
Returns the distance from the projectile origin to the impact point.
|
virtual |
Returns a pointer to the object that was hit, or null for terrain.
|
virtual |
Returns whether a valid collision occurred.
|
virtual |
Sets the impact position.
|
virtual |
Sets the surface normal.
|
virtual |
Sets the distance to impact.
|
virtual |
Sets the pointer to the hit object.
|
virtual |
Sets whether a valid collision occurred.
|
protected |
World-space position of the impact.
|
protected |
Surface normal at the impact point.
|
protected |
Distance from projectile origin to impact.
|
protected |
Pointer to the hit object; null for terrain or when unused.
< Currently always set to nullptr - reserved for future use by < collision backends that can identify a specific scene object.
|
protected |
True if a valid collision occurred.