Lysa  0.0
Lysa 3D Engine
MeshShape Class Reference

Detailed Description

A mesh shape, consisting of triangles. Must only be used with a StaticBody (like a terrain for example)

+ Inheritance diagram for MeshShape:

Public Member Functions

 MeshShape (const std::shared_ptr< Node > &node, const PhysicsMaterial *material=nullptr, const std::string &resName="MeshShape")
 
- Public Member Functions inherited from Shape
 Shape (const PhysicsMaterial *material, const std::string &resName)
 
auto & getMaterial () const
 
- Public Member Functions inherited from Resource
 Resource (const std::string &name)
 
auto getId () const
 
const auto & getName () const
 
bool operator== (const Resource &other) const
 
bool operator< (const Resource &other) const
 
bool operator> (const Resource &other) const
 
virtual std::shared_ptr< Resource > duplicate () const
 
- Public Member Functions inherited from Object
void connect (const Signal::signal &name, const Signal::Handler &handler)
 
void connect (const Signal::signal &name, const std::function< void ()> &handler)
 
void emit (const Signal::signal &name, void *params=nullptr)
 
virtual std::string toString () const
 
 Object () = default
 
virtual ~Object () = default
 

Additional Inherited Members

- Protected Attributes inherited from Shape
PhysicsMaterial * material
 

Constructor & Destructor Documentation

MeshShape ( const std::shared_ptr< Node > &  node,
const PhysicsMaterial *  material = nullptr,
const std::string &  resName = "MeshShape" 
)

Creates a MeshShape using the triangles of the Mesh of first MeshInstance found in the node tree