CrystalSpace

Public API Reference

CS::Collisions::HitBeamResult Struct Reference

A structure used to return the result of hit beam. More...

#include <ivaria/collisions.h>

List of all members.

Public Attributes

bool hasHit
 Whether the beam has hit a body or not.
csVector3 isect
 Intersection point in world space.
csVector3 normal
 Normal to the surface of the body at the intersection point.
iCollisionObjectobject
 The collision object that was hit, or nullptr if no object was hit.
size_t vertexIndex
 The index of the closest vertex of the soft body to be hit.

Detailed Description

A structure used to return the result of hit beam.

Definition at line 82 of file collisions.h.


Member Data Documentation

Whether the beam has hit a body or not.

Definition at line 89 of file collisions.h.

Intersection point in world space.

Definition at line 95 of file collisions.h.

Normal to the surface of the body at the intersection point.

Definition at line 98 of file collisions.h.

The collision object that was hit, or nullptr if no object was hit.

Definition at line 92 of file collisions.h.

The index of the closest vertex of the soft body to be hit.

This is only valid if it is a soft body which is hit.

Definition at line 104 of file collisions.h.


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

Generated for Crystal Space 2.1 by doxygen 1.6.1