23 _name = name ? name :
"";
24 ptr()->name = _name.c_str();
30 void PhysxForceFieldShapeDesc::
31 set_pos(
const LPoint3f &pos) {
33 nassertv(!pos.is_nan());
40 void PhysxForceFieldShapeDesc::
41 set_mat(
const LMatrix4f &mat) {
43 nassertv(!mat.is_nan());
50 void PhysxForceFieldShapeDesc::
51 set_hpr(
float h,
float p,
float r) {
57 q.set_hpr(LVector3f(h, p, r));
58 q.extract_to_matrix(rot);
66 const char *PhysxForceFieldShapeDesc::
75 LPoint3f PhysxForceFieldShapeDesc::
84 LMatrix4f PhysxForceFieldShapeDesc::
void set_name(const char *name)
Sets a possible debug name.
static NxVec3 point3_to_nxVec3(const LPoint3f &p)
Converts from LPoint3f to NxVec3.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
static NxMat34 mat4_to_nxMat34(const LMatrix4f &m)
Converts from LMatrix4f to NxMat34.
static NxMat33 mat3_to_nxMat33(const LMatrix3f &m)
Converts from LMatrix3f to NxMat33.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
static LPoint3f nxVec3_to_point3(const NxVec3 &p)
Converts from NxVec3 to LPoint3f.
static LMatrix4f nxMat34_to_mat4(const NxMat34 &m)
Converts from NxMat34 to LMatrix4f.