x
Yes
No
Do you want to visit DriveHQ English website?
首页
产品服务
价格
免费试用
下载客户端
关于我们
云文件服务
|
云备份服务
|
FTP服务
|
企业邮箱服务
|
网站托管
|
客户端软件
云文件服务
云备份服务
FTP服务
企业级邮箱服务
网站托管
客户端软件
btConvexInternalShape.h - Hosted on DriveHQ Cloud IT Platform
返回上层目录
上传
下载
共享
发布
新建文件夹
新建文件
复制
剪切
删除
粘贴
评论
升级服务
路径: \\game3dprogramming\materials\DarkPuzzle\libs\bullet_src\BulletCollision\CollisionShapes\btConvexInternalShape.h
旋转
特效
属性
历史版本
#ifndef BT_CONVEX_INTERNAL_SHAPE_H #define BT_CONVEX_INTERNAL_SHAPE_H #include "btConvexShape.h" ///btConvexInternalShape carries some additional data, shared by most implementations class btConvexInternalShape : public btConvexShape { protected: //local scaling. collisionMargin is not scaled ! btVector3 m_localScaling; btVector3 m_implicitShapeDimensions; btScalar m_collisionMargin; btScalar m_padding; public: btConvexInternalShape(); virtual ~btConvexInternalShape() { } virtual btVector3 localGetSupportingVertex(const btVector3& vec)const; #ifndef __SPU__ virtual btVector3 localGetSupportingVertexWithoutMargin(const btVector3& vec) const= 0; //notice that the vectors should be unit length virtual void batchedUnitVectorGetSupportingVertexWithoutMargin(const btVector3* vectors,btVector3* supportVerticesOut,int numVectors) const= 0; #endif //#ifndef __SPU__ const btVector3& getImplicitShapeDimensions() const { return m_implicitShapeDimensions; } ///getAabb's default implementation is brute force, expected derived classes to implement a fast dedicated version void getAabb(const btTransform& t,btVector3& aabbMin,btVector3& aabbMax) const { getAabbSlow(t,aabbMin,aabbMax); } virtual void getAabbSlow(const btTransform& t,btVector3& aabbMin,btVector3& aabbMax) const; virtual void setLocalScaling(const btVector3& scaling); virtual const btVector3& getLocalScaling() const { return m_localScaling; } const btVector3& getLocalScalingNV() const { return m_localScaling; } virtual void setMargin(btScalar margin) { m_collisionMargin = margin; } virtual btScalar getMargin() const { return m_collisionMargin; } btScalar getMarginNV() const { return m_collisionMargin; } virtual int getNumPreferredPenetrationDirections() const { return 0; } virtual void getPreferredPenetrationDirection(int index, btVector3& penetrationVector) const { (void)penetrationVector; (void)index; btAssert(0); } }; #endif //BT_CONVEX_INTERNAL_SHAPE_H
btConvexInternalShape.h
网页地址
文件地址
上一页
19/58
下一页
下载
( 2 KB )
Comments
Total ratings:
0
Average rating:
无评论
of 10
Would you like to comment?
Join now
, or
Logon
if you are already a member.