Project

General

Profile

SO3Engine
SO3::SRaycast Class Reference

#include <SO3RayCast.h>

Static Public Member Functions

static SRaycastResult Cast (SCamera *camera, const float &relativePosX, const float &relativePosY, Ogre::SubEntity *subEntity, bool getUvCoordonate=false)
 
static SRaycastResult Cast (Ogre::Camera *camera, const float &relativePosX, const float &relativePosY, Ogre::SubEntity *subEntity, bool getUvCoordonate=false)
 
static SRaycastResult Cast (SScene *sm, Ogre::Vector3 pos, Ogre::Vector3 dir, Ogre::Real maxdist, bool getUvCoordonate=false)
 
static void GetMeshInformation (const Ogre::MeshPtr mesh, size_t &vertex_count, Ogre::Vector3 *&vertices, size_t &index_count, unsigned long *&indices, const Ogre::Vector3 &position, const Ogre::Quaternion &orient, const Ogre::Vector3 &scale)
 

Detailed Description

Definition at line 79 of file SO3RayCast.h.

Member Function Documentation

◆ Cast() [1/3]

SRaycastResult SO3::SRaycast::Cast ( Ogre::Camera *  camera,
const float &  relativePosX,
const float &  relativePosY,
Ogre::SubEntity *  subEntity,
bool  getUvCoordonate = false 
)
static

Definition at line 208 of file SO3RayCast.cpp.

◆ Cast() [2/3]

SRaycastResult SO3::SRaycast::Cast ( SCamera camera,
const float &  relativePosX,
const float &  relativePosY,
Ogre::SubEntity *  subEntity,
bool  getUvCoordonate = false 
)
static

Cast from camera, giving viewport relative position as position to cast.

Definition at line 200 of file SO3RayCast.cpp.

◆ Cast() [3/3]

SRaycastResult SO3::SRaycast::Cast ( SScene sm,
Ogre::Vector3  pos,
Ogre::Vector3  dir,
Ogre::Real  maxdist,
bool  getUvCoordonate = false 
)
static

Cast from position

Definition at line 397 of file SO3RayCast.cpp.

◆ GetMeshInformation()

void SO3::SRaycast::GetMeshInformation ( const Ogre::MeshPtr  mesh,
size_t &  vertex_count,
Ogre::Vector3 *&  vertices,
size_t &  index_count,
unsigned long *&  indices,
const Ogre::Vector3 &  position,
const Ogre::Quaternion &  orient,
const Ogre::Vector3 &  scale 
)
static

Get mesh informations

Definition at line 86 of file SO3RayCast.cpp.


The documentation for this class was generated from the following files: