physx类图
2023-08-25 20:57:02 0 举报
111
作者其他创作
大纲/内容
void* userdata;
PxScene* getScene();ActType getType();void setFlag();
PxHeightField
GeometryUnion
union { void* alignment; PxU8 box[sizeof(PxBoxGeometry)]; PxU8 sphere[sizeof(PxSphereGeometry)]; PxU8 capsule[sizeof(PxCapsuleGeometry)]; PxU8 plane[sizeof(PxPlaneGeometry)]; PxU8 convex[sizeof(PxConvexMeshGeometryLL)]; PxU8 mesh[sizeof(PxTriangleMeshGeometryLL)]; PxU8 heightfield[sizeof(PxHeightFieldGeometryLL)]; PxU8 invalid[sizeof(InvalidGeometry)];} mGeometry;
PxGeometryType::Enum getType() ;const PxGeometry& getGeometry() Geom& get();
NpRigidDynamic
scb::Base
Scb::Scene* mScenePxU32 mControlState;PxU8*\t\t\t\tmStreamPtr;
int getBufferFlag();void setBufferFlag();
NpActor
char* name;NpConnectorArray* conn;static pxActorToNpActorOffset[];static pxActorToScbActorOffset[];
PxsShapeCore
PxTransform transform ;PxReal contactOffset;PxU8 mShapeFlags; PxU8 mOwnsMaterialIdxMemory; PxU16 materialIndex;Gu::GeometryUnion geometry;
SCENE_BUFFERRING
Scb::Actor
static const Offsets\t\t\t\t\tsOffsets;
PxsRigidCore
PxTransform body2World;PxRigidBodyFlags mFlags; PxU8 mIdtBody2Actor; PxU16 solverIterationCounts;
NpShapeManager
Cm::PtrTable mShapes;Cm::PtrTable mSceneQueryData; Sq::PrunerCompoundId mSqCompoundId;Sq::PruningStructure* mPruningStructure;
RigidCore
PxActor getActor();void addShape();void removeShape();
PxRigidActor
PxTransform
Vector3 pos;Quaternion quat;
void setGeometry();bool getGeometry();bool getBoxGeometry();bool getActor();bool getQueryFilter();
PxBoxGeometry
PxVec3 halfExtents;
bool isValid();
ShapeCore
NpActorTemplate<T>
StaticCore
PxsRigidCore mCore;
scb::Shape
Sc::ShapeCore\t\tmShape;
NpRigidStatic(PxRigidStatic)
Scb::RigidStatic \t\tmRigidStatic;
scene
ActorCore
ActorSim* mSim;PxActorFlags\t\tmActorFlags;PxU8 mActorType
PxTriangleMeshGeometry
PxMeshScale scale; PxMeshGeometryFlags meshFlags; PxPadding<3> paddingFromFlags; PxTriangleMesh* triangleMesh;
PxGeometry
PxGeometryType::Enum mType;
PxGeometryType::Enum getType()
BodyCore
PxsBodyCore mCore ;SimStateData*\t\tmSimStateData;
Actor_Interface
HeightFieldData
CenterExtents AABB;int rows;int columns;float rowlimit;float collimit;int nbColumns;PxHeightFieldSample * samples;Flags flag;
NpShape
PxRigidActor* mActor; Scb::Shape mShape;const char* mName;
PxHeightFieldSample
int16 height;char idx0;char idx1;
char testFlag();
说明:
shape
Gu::HeightField
HeightFieldData mData;int mNbSamples;float minHeight;float maxHeight;int ModifyCount;
Body
Sc::BodyCore\t\tmBodyCore;
PxArticulationLink
PxArticulationBase& getArticulation();PxArticulationJointBase*\tgetInboundJoint()
RigidObject
void syncState();
NpScene
Ps::Array<PxRigidActor*>\t\tmRigidActors;
PxCapsuleGeometry
PxReal halfHeight;PxReal radius;
PxHeightFieldGeometry
PxHeightField*heightField;float heightScale;float rolwScale;float columnScale;...
void setMass();void setLinearDamping();void setAngularDamping();void setLinearVelocity();void setAngularDamping();
RigidStatic
Sc::StaticCore\t\tmStatic;
PxsBodyCore
PxReal ccdAdvanceCoefficient; PxVec3 linearVelocity;PxReal maxPenBias; PxReal maxAngularVelocitySq;
NpRigidActorTemplate<T>
NpShapeManager mShapeManager;PxU32 mIndex; // index
int getNbShapes();
PxRigidStatic(不动)
PxBase
type mConcrete
void release();template<t> is();bool iskindof();void setbaseflag();
PxRigidDynamic
void setKinematicTarget(pos);bool issleeping();bool wakeUp();
Actor_Impl
NpRigidBodyTemplate
Scb::Body \t\t\tmBody;
0 条评论
下一页