29 return NxVec3(v.get_x(), v.get_y(), v.get_z());
38 return LVector3f(v.x, v.y, v.z);
47 return NxExtendedVec3(v.get_x(), v.get_y(), v.get_z());
56 return LVector3f(v.x, v.y, v.z);
65 return NxVec3(p.get_x(), p.get_y(), p.get_z());
74 return LPoint3f(p.x, p.y, p.z);
83 return NxExtendedVec3(p.get_x(), p.get_y(), p.get_z());
92 return LPoint3f(p.x, p.y, p.z);
102 nxq.setXYZW(q.get_i(), q.get_j(), q.get_k(), q.get_r());
112 return LQuaternionf(q.w, q.x, q.y, q.z);
123 return NxMat34(mat, v);
142 mat.setColumnMajor(m.get_data());
153 m.getColumnMajor(cells);
154 return LMatrix3f(cells[0], cells[1], cells[2],
155 cells[3], cells[4], cells[5],
156 cells[6], cells[7], cells[8]);
162 INLINE
void PhysxManager::
163 update_vec3_from_nxVec3(LVector3f &v,
const NxVec3 &nVec) {
173 INLINE
void PhysxManager::
174 update_point3_from_nxVec3(LPoint3f &p,
const NxVec3 &nVec) {
185 INLINE
void PhysxManager::
194 INLINE
void PhysxManager::
195 ls(std::ostream &out,
int indent_level)
const {
197 indent(out, indent_level) <<
"PhysxManager\n";
199 _scenes.ls(out, indent_level);
200 _heightfields.ls(out, indent_level);
201 _convex_meshes.ls(out, indent_level);
202 _triangle_meshes.ls(out, indent_level);
NxPhysicsSDK * get_sdk() const
Returns a pointer to the NxPhysicsSDK.
static NxQuat quat_to_nxQuat(const LQuaternionf &q)
Converts from LQuaternionf to NxQuat.
static NxVec3 point3_to_nxVec3(const LPoint3f &p)
Converts from LPoint3f to NxVec3.
static NxMat34 mat4_to_nxMat34(const LMatrix4f &m)
Converts from LMatrix4f to NxMat34.
static NxExtendedVec3 point3_to_nxExtVec3(const LPoint3f &p)
Converts from LPoint3f to NxExtendedVec3.
static LPoint3f nxExtVec3_to_point3(const NxExtendedVec3 &p)
Converts from NxExtendedVec3 to LPoint3f.
static NxExtendedVec3 vec3_to_nxExtVec3(const LVector3f &v)
Converts from LVector3f to NxExtendedVec3.
std::ostream & indent(std::ostream &out, int indent_level)
A handy function for doing text formatting.
static NxVec3 vec3_to_nxVec3(const LVector3f &v)
Converts from LVector3f to NxVec3.
static LQuaternionf nxQuat_to_quat(const NxQuat &q)
Converts from NxQuat to LQuaternionf.
static NxMat33 mat3_to_nxMat33(const LMatrix3f &m)
Converts from LMatrix3f to NxMat33.
static LVector3f nxVec3_to_vec3(const NxVec3 &v)
Converts from NxVec3 to LVector3f.
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.
static LMatrix3f nxMat33_to_mat3(const NxMat33 &m)
Converts from NxMat33 to LMatrix3f.
static LVector3f nxExtVec3_to_vec3(const NxExtendedVec3 &v)
Converts from NxExtendedVec3 to LVector3f.