24 _desc.shapes.push_back(desc.ptr());
33 _name = name ? name :
"";
34 _desc.name = _name.c_str();
44 _desc.density = density;
77 q.set_hpr(LVector3f(h, p, r));
78 q.extract_to_matrix(rot);
90 _desc.body = &(desc._desc);
119 return _desc.density;
static NxVec3 point3_to_nxVec3(const LPoint3f &p)
Converts from LPoint3f to NxVec3.
void set_global_pos(const LPoint3f &pos)
Set the position of the actor in global space.
const char * get_name() const
Returns the optional debug name for this actor.
void set_global_hpr(float h, float p, float r)
Sets the orientation of the actor in global space by providing angles for heading, pitch and roll.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
void add_shape(PhysxShapeDesc &desc)
Adds a shape to the list of collision shapes composing this actor.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
static NxMat34 mat4_to_nxMat34(const LMatrix4f &m)
Converts from LMatrix4f to NxMat34.
float get_density() const
Returns the actor's density.
void set_density(float density)
Set the density used during mass/intertia computation.
void set_body(PhysxBodyDesc &desc)
Sets the body descriptor for this actor.
LMatrix4f get_global_mat() const
Returns the actor's transform in global space.
PhysxBodyDesc get_body() const
Gets the body descriptor for this actor.
static NxMat33 mat3_to_nxMat33(const LMatrix3f &m)
Converts from LMatrix3f to NxMat33.
LPoint3f get_global_pos() const
Returns the actor's position in global space.
Abstract base class for shape descriptors.
static LPoint3f nxVec3_to_point3(const NxVec3 &p)
Converts from NxVec3 to LPoint3f.
Descriptor for the optional rigid body dynamic state of PhysxActor.
static LMatrix4f nxMat34_to_mat4(const NxMat34 &m)
Converts from NxMat34 to LMatrix4f.
void set_name(const char *name)
Sets the optional debug name for the actor.
void set_global_mat(const LMatrix4f &mat)
Set the position and orientation of the actor in global space.