35 return NxVec3(v.get_x(), v.get_y(), v.get_z());
57 return NxExtendedVec3(v.get_x(), v.get_y(), v.get_z());
79 return NxVec3(p.get_x(), p.get_y(), p.get_z());
101 return NxExtendedVec3(p.get_x(), p.get_y(), p.get_z());
124 nxq.setXYZW(q.get_i(), q.get_j(), q.get_k(), q.get_r());
149 return NxMat34(mat, v);
185 m.getColumnMajor(cells);
186 return LMatrix3f(cells[0], cells[1], cells[2],
187 cells[3], cells[4], cells[5],
188 cells[6], cells[7], cells[8]);
196 INLINE
void PhysxManager::
197 update_vec3_from_nxVec3(
LVector3f &v,
const NxVec3 &nVec) {
209 INLINE
void PhysxManager::
210 update_point3_from_nxVec3(
LPoint3f &p,
const NxVec3 &nVec) {
223 INLINE
void PhysxManager::
234 INLINE
void PhysxManager::
235 ls(ostream &out,
int indent_level)
const {
237 indent(out, indent_level) <<
"PhysxManager\n";
239 _scenes.ls(out, indent_level);
240 _heightfields.ls(out, indent_level);
241 _convex_meshes.ls(out, indent_level);
242 _triangle_meshes.ls(out, indent_level);
LMatrix3f get_upper_3() const
Retrieves the upper 3x3 submatrix.
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.
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 ...
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.
This is a 4-by-4 transform matrix.
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.
This is the base quaternion class.
static LPoint3f nxVec3_to_point3(const NxVec3 &p)
Converts from NxVec3 to LPoint3f.
const float * get_data() const
Returns the address of the first of the nine data elements in the matrix.
LVecBase3f get_row3(int row) const
Retrieves the row column of the matrix as a 3-component vector, ignoring the last column...
This is a 3-by-3 transform matrix.
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.