15 #include "physxActorDesc.h"
16 #include "physxBodyDesc.h"
17 #include "physxManager.h"
28 _desc.shapes.push_back(desc.ptr());
39 _name = name ? name :
"";
40 _desc.name = _name.c_str();
53 _desc.density = density;
110 _desc.body = &(desc._desc);
147 return _desc.density;
const char * get_name() const
Returns the optional debug name for this actor.
PhysxBodyDesc get_body() const
Gets the body descriptor for this actor.
LMatrix4f get_global_mat() const
Returns the actor's transform in global space.
float get_density() const
Returns the actor's 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.
void extract_to_matrix(LMatrix3f &m) const
Based on the quat lib from VRPN.
This is a three-component vector distance (as opposed to a three-component point, which represents a ...
This is a three-component point in space (as opposed to a three-component vector, which represents a ...
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.
void add_shape(PhysxShapeDesc &desc)
Adds a shape to the list of collision shapes composing this actor.
LPoint3f get_global_pos() const
Returns the actor's position in global space.
static NxMat34 mat4_to_nxMat34(const LMatrix4f &m)
Converts from LMatrix4f to NxMat34.
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.
This is a 4-by-4 transform matrix.
static NxMat33 mat3_to_nxMat33(const LMatrix3f &m)
Converts from LMatrix3f to NxMat33.
void set_hpr(const LVecBase3f &hpr, CoordinateSystem cs=CS_default)
Sets the quaternion as the unit quaternion that is equivalent to these Euler angles.
Abstract base class for shape descriptors.
This is the base quaternion class.
static LPoint3f nxVec3_to_point3(const NxVec3 &p)
Converts from NxVec3 to LPoint3f.
Descriptor for the optional rigid body dynamic state of PhysxActor.
This is a 3-by-3 transform matrix.
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.