C# Класс BUtility, BulletUnity3D

Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
DebugDrawArc ( Vector3 center, Vector3 normal, Vector3 axis, float radiusA, float radiusB, float minAngle, float maxAngle, Color color, bool drawSect, float stepDegrees ) : void
DebugDrawBox ( Vector3 position, Quaternion rotation, Vector3 scale, Vector3 maxVec, Color color ) : void
DebugDrawCapsule ( Vector3 position, Quaternion rotation, Vector3 scale, float radius, float halfHeight, int upAxis, Color color ) : void
DebugDrawCone ( Vector3 position, Quaternion rotation, Vector3 scale, float radius, float height, int upAxis, Color color ) : void
DebugDrawCylinder ( Vector3 position, Quaternion rotation, Vector3 scale, float radius, float halfHeight, int upAxis, Color color ) : void
DebugDrawPatch ( Vector3 position, Quaternion rotation, Vector3 scale, Vector3 c00, Vector3 c01, Vector3 c10, Vector3 c11, int resX, int resY, Color color ) : void
DebugDrawPlane ( Vector3 position, Quaternion rotation, Vector3 scale, Vector3 planeNormal, float planeConst, Color color ) : void
DebugDrawPolyhedron ( Vector3 position, Quaternion rotation, Vector3 scale, btPolyhedralConvexShape shape, Color color ) : void
DebugDrawRope ( Vector3 position, Quaternion rotation, Vector3 scale, Vector3 begin, Vector3 end, int res, Color color ) : void
DebugDrawSphere ( Vector3 position, Quaternion rotation, Vector3 scale, Vector3 radius, Color color ) : void
GetPlaneSpaceVector ( Vector3 planeNormal, Vector3 &vec1, Vector3 &vec2 ) : void

Описание методов

DebugDrawArc() публичный статический Метод

public static DebugDrawArc ( Vector3 center, Vector3 normal, Vector3 axis, float radiusA, float radiusB, float minAngle, float maxAngle, Color color, bool drawSect, float stepDegrees ) : void
center Vector3
normal Vector3
axis Vector3
radiusA float
radiusB float
minAngle float
maxAngle float
color Color
drawSect bool
stepDegrees float
Результат void

DebugDrawBox() публичный статический Метод

public static DebugDrawBox ( Vector3 position, Quaternion rotation, Vector3 scale, Vector3 maxVec, Color color ) : void
position Vector3
rotation Quaternion
scale Vector3
maxVec Vector3
color Color
Результат void

DebugDrawCapsule() публичный статический Метод

public static DebugDrawCapsule ( Vector3 position, Quaternion rotation, Vector3 scale, float radius, float halfHeight, int upAxis, Color color ) : void
position Vector3
rotation Quaternion
scale Vector3
radius float
halfHeight float
upAxis int
color Color
Результат void

DebugDrawCone() публичный статический Метод

public static DebugDrawCone ( Vector3 position, Quaternion rotation, Vector3 scale, float radius, float height, int upAxis, Color color ) : void
position Vector3
rotation Quaternion
scale Vector3
radius float
height float
upAxis int
color Color
Результат void

DebugDrawCylinder() публичный статический Метод

public static DebugDrawCylinder ( Vector3 position, Quaternion rotation, Vector3 scale, float radius, float halfHeight, int upAxis, Color color ) : void
position Vector3
rotation Quaternion
scale Vector3
radius float
halfHeight float
upAxis int
color Color
Результат void

DebugDrawPatch() публичный статический Метод

public static DebugDrawPatch ( Vector3 position, Quaternion rotation, Vector3 scale, Vector3 c00, Vector3 c01, Vector3 c10, Vector3 c11, int resX, int resY, Color color ) : void
position Vector3
rotation Quaternion
scale Vector3
c00 Vector3
c01 Vector3
c10 Vector3
c11 Vector3
resX int
resY int
color Color
Результат void

DebugDrawPlane() публичный статический Метод

public static DebugDrawPlane ( Vector3 position, Quaternion rotation, Vector3 scale, Vector3 planeNormal, float planeConst, Color color ) : void
position Vector3
rotation Quaternion
scale Vector3
planeNormal Vector3
planeConst float
color Color
Результат void

DebugDrawPolyhedron() публичный статический Метод

public static DebugDrawPolyhedron ( Vector3 position, Quaternion rotation, Vector3 scale, btPolyhedralConvexShape shape, Color color ) : void
position Vector3
rotation Quaternion
scale Vector3
shape BulletCSharp.btPolyhedralConvexShape
color Color
Результат void

DebugDrawRope() публичный статический Метод

public static DebugDrawRope ( Vector3 position, Quaternion rotation, Vector3 scale, Vector3 begin, Vector3 end, int res, Color color ) : void
position Vector3
rotation Quaternion
scale Vector3
begin Vector3
end Vector3
res int
color Color
Результат void

DebugDrawSphere() публичный статический Метод

public static DebugDrawSphere ( Vector3 position, Quaternion rotation, Vector3 scale, Vector3 radius, Color color ) : void
position Vector3
rotation Quaternion
scale Vector3
radius Vector3
color Color
Результат void

GetPlaneSpaceVector() публичный статический Метод

public static GetPlaneSpaceVector ( Vector3 planeNormal, Vector3 &vec1, Vector3 &vec2 ) : void
planeNormal Vector3
vec1 Vector3
vec2 Vector3
Результат void