Panda3D
|
Renderable geometry which represents a soft body mesh. More...
#include "physxSoftBodyNode.h"
Classes | |
struct | TetraLink |
Public Member Functions | |
PhysxSoftBodyNode (const char *name) | |
void | allocate (PhysxSoftBody *cloth) |
virtual TypeHandle | force_init_type () |
virtual TypeHandle | get_type () const |
void | set_from_geom (const Geom *geom) |
Reads the vertices and indices from an existing Geom and makes a decomposed copy of the data. | |
void | update () |
Static Public Member Functions | |
static TypeHandle | get_class_type () |
static void | init_type () |
Renderable geometry which represents a soft body mesh.
Definition at line 36 of file physxSoftBodyNode.h.
void PhysxSoftBodyNode::set_from_geom | ( | const Geom * | geom | ) |
Reads the vertices and indices from an existing Geom and makes a decomposed copy of the data.
Then computes links between the owning soft body tetrahedron mesh in order to render an updated geometry every simulation frame.
Definition at line 77 of file physxSoftBodyNode.cxx.
References GeomVertexWriter::add_data2f(), GeomVertexWriter::add_data3f(), GeomVertexReader::get_data2f(), GeomVertexReader::get_data3f(), Geom::get_num_primitives(), and GeomVertexReader::is_at_end().