Torque2D Reference

- Main Page
- Related Pages
- Modules
- Namespaces
- Classes

- Class List
- Class Index
- Class Hierarchy
- Class Members

Public Member Functions | Public Attributes | List of all members
WorldQueryResult Struct Reference

More...

`#include <WorldQueryResult.h>`

## Public Member Functions
| WorldQueryResult ()
| WorldQueryResult (SceneObject *pSceneObject)
| Initialize a non-ray-cast result. More...
| WorldQueryResult (SceneObject *pSceneObject, const b2Vec2 &point, const b2Vec2 &normal, const F32 fraction, const U32 shapeIndex)
| Initialize a ray-cast result. More...

## Public Attributes
b2Vec2 | mPoint
b2Vec2 | mNormal
F32 | mFraction
SceneObject * | mpSceneObject
U32 | mShapeIndex

## Detailed Description

## Constructor & Destructor Documentation

WorldQueryResult | ( |  | ) |
| inline

WorldQueryResult | ( | SceneObject * | pSceneObject | ) |
| inline

Initialize a non-ray-cast result.

WorldQueryResult | ( | SceneObject * | pSceneObject,
|  | const b2Vec2 & | point,
|  | const b2Vec2 & | normal,
|  | const F32 | fraction,
|  | const U32 | shapeIndex
| ) |  |
| inline

Initialize a ray-cast result.

## Member Data Documentation

F32 mFraction

b2Vec2 mNormal

b2Vec2 mPoint

SceneObject* mpSceneObject

U32 mShapeIndex

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

- 2d/scene/WorldQueryResult.h