@NoOffset @Properties(inherit=BulletCollision.class) public class btGImpactMeshShapePart extends btGImpactShapeInterface
| Modifier and Type | Class and Description |
|---|---|
static class |
btGImpactMeshShapePart.TrimeshPrimitiveManager
Trimesh primitive manager
/**
Manages the info from btStridingMeshInterface object and controls the Lock/Unlock mechanism
|
Pointer.CustomDeallocator, Pointer.Deallocator, Pointer.NativeDeallocator, Pointer.ReferenceCounter| Constructor and Description |
|---|
btGImpactMeshShapePart() |
btGImpactMeshShapePart(btStridingMeshInterface meshInterface,
int part) |
btGImpactMeshShapePart(long size)
Native array allocator.
|
btGImpactMeshShapePart(Pointer p)
Pointer cast constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
calculateLocalInertia(double mass,
btVector3 inertia) |
boolean |
childrenHasTransform()
if true, then its children must get transforms.
|
void |
getBulletTetrahedron(int prim_index,
btTetrahedronShapeEx tetrahedron) |
void |
getBulletTriangle(int prim_index,
btTriangleShapeEx triangle) |
btCollisionShape |
getChildShape(int index)
Gets the children
|
btTransform |
getChildTransform(int index)
Gets the children transform
|
int |
getGImpactShapeType()
Subshape member functions
\{
|
btVector3 |
getLocalScaling() |
double |
getMargin() |
BytePointer |
getName() |
int |
getNumChildShapes()
Gets the number of children
|
int |
getPart() |
btGImpactMeshShapePart |
getPointer(long i) |
btPrimitiveManagerBase |
getPrimitiveManager()
Obtains the primitive manager
|
btGImpactMeshShapePart.TrimeshPrimitiveManager |
getTrimeshPrimitiveManager() |
void |
getVertex(int vertex_index,
btVector3 vertex) |
int |
getVertexCount() |
void |
lockChildShapes()
call when reading child shapes
|
boolean |
needsRetrieveTetrahedrons()
Determines if this shape has tetrahedrons
|
boolean |
needsRetrieveTriangles()
Determines if this shape has triangles
|
btGImpactMeshShapePart |
position(long position) |
void |
processAllTriangles(btTriangleCallback callback,
btVector3 aabbMin,
btVector3 aabbMax)
Function for retrieve triangles.
|
void |
processAllTrianglesRay(btTriangleCallback callback,
btVector3 rayFrom,
btVector3 rayTo)
Function for retrieve triangles.
|
void |
setChildTransform(int index,
btTransform transform)
Sets the children transform
/**
\post You must call updateBound() for update the box set.
|
void |
setLocalScaling(btVector3 scaling)
\post You must call updateBound() for update the box set.
|
void |
setMargin(double margin) |
void |
unlockChildShapes() |
getAabb, getBoxSet, getChildAabb, getPrimitiveTriangle, getShapeType, hasBoxSet, postUpdate, rayTest, updateBoundcalculateSerializeBufferSize, calculateTemporalAabb, getAngularMotionDisc, getAnisotropicRollingFrictionDirection, getBoundingSphere, getBoundingSphere, getBoundingSphere, getContactBreakingThreshold, getUserIndex, getUserIndex2, getUserPointer, isCompound, isConcave, isConvex, isConvex2d, isInfinite, isNonMoving, isPolyhedral, isSoftBody, serialize, serializeSingleShape, setUserIndex, setUserIndex2, setUserPointeraddress, asBuffer, asByteBuffer, availablePhysicalBytes, calloc, capacity, capacity, close, deallocate, deallocate, deallocateReferences, deallocator, deallocator, equals, fill, formatBytes, free, getDirectBufferAddress, getPointer, getPointer, getPointer, hashCode, interruptDeallocatorThread, isNull, isNull, limit, limit, malloc, maxBytes, maxPhysicalBytes, memchr, memcmp, memcpy, memmove, memset, offsetAddress, offsetof, offsetof, parseBytes, physicalBytes, physicalBytesInaccurate, position, put, realloc, referenceCount, releaseReference, retainReference, setNull, sizeof, sizeof, toString, totalBytes, totalCount, totalPhysicalBytes, withDeallocator, zeropublic btGImpactMeshShapePart(Pointer p)
Pointer(Pointer).public btGImpactMeshShapePart(long size)
Pointer.position(long).public btGImpactMeshShapePart()
public btGImpactMeshShapePart(btStridingMeshInterface meshInterface, int part)
public btGImpactMeshShapePart position(long position)
public btGImpactMeshShapePart getPointer(long i)
getPointer in class Pointer@Cast(value="bool") public boolean childrenHasTransform()
childrenHasTransform in class btGImpactShapeInterfacepublic void lockChildShapes()
lockChildShapes in class btGImpactShapeInterfacepublic void unlockChildShapes()
unlockChildShapes in class btGImpactShapeInterfacepublic int getNumChildShapes()
getNumChildShapes in class btGImpactShapeInterfacepublic btCollisionShape getChildShape(int index)
getChildShape in class btGImpactShapeInterface@ByVal public btTransform getChildTransform(int index)
getChildTransform in class btGImpactShapeInterfacepublic void setChildTransform(int index,
@Const @ByRef
btTransform transform)
setChildTransform in class btGImpactShapeInterface@Const public btPrimitiveManagerBase getPrimitiveManager()
getPrimitiveManager in class btGImpactShapeInterfacepublic btGImpactMeshShapePart.TrimeshPrimitiveManager getTrimeshPrimitiveManager()
public void calculateLocalInertia(@Cast(value="btScalar") double mass, @ByRef btVector3 inertia)
calculateLocalInertia in class btCollisionShape@Cast(value="const char*") public BytePointer getName()
getName in class btCollisionShape@Cast(value="eGIMPACT_SHAPE_TYPE") public int getGImpactShapeType()
btGImpactShapeInterfaceBase method for determinig which kind of GIMPACT shape we get
getGImpactShapeType in class btGImpactShapeInterface@Cast(value="bool") public boolean needsRetrieveTriangles()
needsRetrieveTriangles in class btGImpactShapeInterface@Cast(value="bool") public boolean needsRetrieveTetrahedrons()
needsRetrieveTetrahedrons in class btGImpactShapeInterfacepublic void getBulletTriangle(int prim_index,
@ByRef
btTriangleShapeEx triangle)
getBulletTriangle in class btGImpactShapeInterfacepublic void getBulletTetrahedron(int prim_index,
@ByRef
btTetrahedronShapeEx tetrahedron)
getBulletTetrahedron in class btGImpactShapeInterfacepublic int getVertexCount()
public void setMargin(@Cast(value="btScalar") double margin)
setMargin in class btGImpactShapeInterface@Cast(value="btScalar") public double getMargin()
getMargin in class btConcaveShapepublic void setLocalScaling(@Const @ByRef btVector3 scaling)
btGImpactShapeInterfacesetLocalScaling in class btGImpactShapeInterface@Const @ByRef public btVector3 getLocalScaling()
getLocalScaling in class btGImpactShapeInterfacepublic int getPart()
public void processAllTriangles(btTriangleCallback callback, @Const @ByRef btVector3 aabbMin, @Const @ByRef btVector3 aabbMax)
btGImpactShapeInterfaceprocessAllTriangles in class btGImpactShapeInterfacepublic void processAllTrianglesRay(btTriangleCallback callback, @Const @ByRef btVector3 rayFrom, @Const @ByRef btVector3 rayTo)
btGImpactShapeInterfaceprocessAllTrianglesRay in class btGImpactShapeInterfaceCopyright © 2024. All rights reserved.