Panda3D
Classes | Public Member Functions | Static Public Member Functions

PhysxSoftBodyNode Class Reference

Renderable geometry which represents a soft body mesh. More...

#include "physxSoftBodyNode.h"

Inheritance diagram for PhysxSoftBodyNode:
GeomNode PandaNode TypedWritable Namable LinkedListNode ReferenceCount TypedObject MemoryBase MemoryBase MemoryBase

List of all members.

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 ()

Detailed Description

Renderable geometry which represents a soft body mesh.

Definition at line 36 of file physxSoftBodyNode.h.


Member Function Documentation

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().


The documentation for this class was generated from the following files:
 All Classes Functions Variables Enumerations