Maria GDK 5.0.0.738
Documentation of native code in develop branch
Loading...
Searching...
No Matches
STK::MeshCollisionObject Class Reference

#include <StkMeshCollisionObject.h>

Inheritance diagram for STK::MeshCollisionObject:
STK::CollisionObject

Classes

struct  MeshGroup
 

Public Member Functions

 MeshCollisionObject (std::shared_ptr< MeshGraphicsModel > model)
 
const std::vector< float > & getVertices () const
 
- Public Member Functions inherited from STK::CollisionObject
btCollisionObject * collisionObject () const
 

Protected Member Functions

std::shared_ptr< MeshGroupgetMeshGroup (int id)
 
void addTriangle (const IndexTriangle &t, const Matrix4x4f &m, std::shared_ptr< const VertexBuffer > vertex_buffer)
 
void processMeshNode (const Matrix4x4f &parent_xfm, std::shared_ptr< MeshNode > mesh_node)
 
btCollisionShape * createCollisionShape ()
 

Protected Attributes

std::shared_ptr< STK::MeshGraphicsModel_model
 
std::map< int, std::shared_ptr< MeshGroup > > _meshGroups
 
std::vector< float > vertices_
 
std::vector< unsigned int > indexes_
 
- Protected Attributes inherited from STK::CollisionObject
btCollisionObject * _collisionObject = nullptr
 

Detailed Description

MeshCollisionObject - Generates a mesh collision object from a MeshGraphicsModel.

This class also supports a GraphicsModelInstance of a MeshGraphicsModel.

Note
In the current implementation, the generated collision mesh may not be entirely correct if you have multiple MeshNodes pointing to the same vertex data but with different transforms. In this case, the vertex data will reflect the positions of the first encountered MeshNode transform.
This class does not support skinnable meshes.

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