4 #include "SweepSurface.h"
11 #pragma comment(lib, "PhysXLoader.lib")
13 namespace APDYNAMICART
42 static inline NxQuat
toNxQuat(
const osg::Quat& qRot );
43 static inline NxVec3
toNxVec3(
const osg::Vec3& point );
44 static inline osg::Vec3
toOsgVec3(
const NxVec3& point);
45 static inline osg::Quat
toOsgQuat(
const NxQuat& qRot);
62 void createRope(
HoopPtr hoop,
const osg::Vec3& pos,
double segHeight,
double radius,
unsigned int segments);
73 NxSphericalJoint*
createRopeSphericalJoint(NxActor* a0, NxActor* a1,
const NxVec3& globalAnchor,
const NxVec3& globalAxis);
74 NxActor*
createCapsule(
const NxVec3& pos,
const NxReal height,
const NxReal radius);
106 return osg::Vec3(point.x, point.y, point.z);
111 return osg::Quat(qRot.x, qRot.y, qRot.z, qRot.w);
116 osg::Vec3 localPoint = hoop->getMatrix().getRotate().inverse() * (point - hoop->
getPosition());
123 return eo->getMatrix();