ZeroZero Game Engine
v0.0
A 3D game engine using Vulkan & Jolt
|
A convex hull collision shape
Public Member Functions | |
ConvexHullShape (const shared_ptr< Node > &node, const string &resName="ConvexHullShape") | |
ConvexHullShape (const shared_ptr< Mesh > &mesh, const string &resName="ConvexHullShape") | |
ConvexHullShape (const vector< vec3 > &points, const string &resName) | |
shared_ptr< Resource > | duplicate () const override |
![]() | |
auto | getId () const |
const auto & | getName () const |
string | toString () const override |
![]() | |
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) |
|
explicit |
Creates a ConvexHullShape using the vertices of the Mesh of the first MeshInstance found in the node
tree. Uses the local transform of the node when creating the shape.
|
explicit |
Creates a ConvexHullShape using the vertices of the Mesh
ConvexHullShape | ( | const vector< vec3 > & | points, |
const string & | resName | ||
) |
Creates a ConvexHullShape using a list of vertices
|
overridevirtual |
Duplicates a resource. Warning : not implemented on all resources types, check documentation for the resource type before using it.
Reimplemented from z0::Resource::duplicate()