ZeroZero Game Engine  v0.0
A 3D game engine using Vulkan & Jolt
Public Member Functions | List of all members
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:
Shape Resource Object

Public Member Functions

 MeshShape (const shared_ptr< Node > &node, const string &resName="MeshShape")
 
 MeshShape (const Node &node, const string &resName="MeshShape")
 
- Public Member Functions inherited from Resource
auto getId () const
 
const auto & getName () const
 
string toString () const override
 
virtual 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 function< void ()> &handler)
 
void emit (const Signal::signal &name, void *params=nullptr)
 

Constructor & Destructor Documentation

MeshShape ( const shared_ptr< Node > &  node,
const string &  resName = "MeshShape" 
)
explicit

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

MeshShape ( const Node node,
const string &  resName = "MeshShape" 
)
explicit

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