@NoOffset @Properties(inherit=BulletCollision.class) public class btGImpactMeshShape extends btGImpactShapeInterface
- You can handle deformable meshes with this shape, by calling postUpdate() every time when changing the mesh vertices.
Pointer.CustomDeallocator, Pointer.Deallocator, Pointer.NativeDeallocator, Pointer.ReferenceCounter| Constructor and Description |
|---|
btGImpactMeshShape(btStridingMeshInterface meshInterface) |
btGImpactMeshShape(Pointer p)
Pointer cast constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
calculateLocalInertia(double mass,
btVector3 inertia) |
int |
calculateSerializeBufferSize() |
boolean |
childrenHasTransform()
if true, then its children must get transforms.
|
void |
getBulletTetrahedron(int prim_index,
btTetrahedronShapeEx tetrahedron) |
void |
getBulletTriangle(int prim_index,
btTriangleShapeEx triangle) |
void |
getChildAabb(int child_index,
btTransform t,
btVector3 aabbMin,
btVector3 aabbMax)
Retrieves the bound from a child
/**
|
btCollisionShape |
getChildShape(int index)
Gets the children
|
btTransform |
getChildTransform(int index)
Gets the children transform
|
int |
getGImpactShapeType()
Subshape member functions
\{
|
btStridingMeshInterface |
getMeshInterface() |
btGImpactMeshShapePart |
getMeshPart(int index) |
int |
getMeshPartCount() |
BytePointer |
getName() |
int |
getNumChildShapes()
Gets the number of children
|
btPrimitiveManagerBase |
getPrimitiveManager()
Obtains the primitive manager
|
void |
lockChildShapes()
call when reading child shapes
|
boolean |
needsRetrieveTetrahedrons()
Determines if this shape has tetrahedrons
|
boolean |
needsRetrieveTriangles()
Determines if this shape has triangles
|
void |
postUpdate()
Tells to this object that is needed to refit all the meshes
|
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 |
rayTest(btVector3 rayFrom,
btVector3 rayTo,
btCollisionWorld.RayResultCallback resultCallback)
\}
|
BytePointer |
serialize(Pointer dataBuffer,
btSerializer serializer)
fills the dataBuffer and returns the struct name (and 0 on failure)
|
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, getLocalScaling, getPrimitiveTriangle, getShapeType, hasBoxSet, updateBoundgetMargincalculateTemporalAabb, getAngularMotionDisc, getAnisotropicRollingFrictionDirection, getBoundingSphere, getBoundingSphere, getBoundingSphere, getContactBreakingThreshold, getUserIndex, getUserIndex2, getUserPointer, isCompound, isConcave, isConvex, isConvex2d, isInfinite, isNonMoving, isPolyhedral, isSoftBody, serializeSingleShape, setUserIndex, setUserIndex2, setUserPointeraddress, asBuffer, asByteBuffer, availablePhysicalBytes, calloc, capacity, capacity, close, deallocate, deallocate, deallocateReferences, deallocator, deallocator, equals, fill, formatBytes, free, getDirectBufferAddress, getPointer, getPointer, getPointer, getPointer, hashCode, interruptDeallocatorThread, isNull, isNull, limit, limit, malloc, maxBytes, maxPhysicalBytes, memchr, memcmp, memcpy, memmove, memset, offsetAddress, offsetof, offsetof, parseBytes, physicalBytes, physicalBytesInaccurate, position, position, put, realloc, referenceCount, releaseReference, retainReference, setNull, sizeof, sizeof, toString, totalBytes, totalCount, totalPhysicalBytes, withDeallocator, zeropublic btGImpactMeshShape(Pointer p)
Pointer(Pointer).public btGImpactMeshShape(btStridingMeshInterface meshInterface)
public btStridingMeshInterface getMeshInterface()
public int getMeshPartCount()
public btGImpactMeshShapePart getMeshPart(int index)
public void setLocalScaling(@Const @ByRef btVector3 scaling)
btGImpactShapeInterfacesetLocalScaling in class btGImpactShapeInterfacepublic void setMargin(@Cast(value="btScalar") double margin)
setMargin in class btGImpactShapeInterfacepublic void postUpdate()
postUpdate in class btGImpactShapeInterfacepublic void calculateLocalInertia(@Cast(value="btScalar") double mass, @ByRef btVector3 inertia)
calculateLocalInertia in class btCollisionShape@Const public btPrimitiveManagerBase getPrimitiveManager()
getPrimitiveManager in class btGImpactShapeInterfacepublic int getNumChildShapes()
getNumChildShapes in class btGImpactShapeInterface@Cast(value="bool") public boolean childrenHasTransform()
childrenHasTransform 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 void lockChildShapes()
lockChildShapes in class btGImpactShapeInterfacepublic void unlockChildShapes()
unlockChildShapes in class btGImpactShapeInterfacepublic void getChildAabb(int child_index,
@Const @ByRef
btTransform t,
@ByRef
btVector3 aabbMin,
@ByRef
btVector3 aabbMax)
getChildAabb 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@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="const char*") public BytePointer getName()
getName in class btCollisionShapepublic void rayTest(@Const @ByRef btVector3 rayFrom, @Const @ByRef btVector3 rayTo, @ByRef btCollisionWorld.RayResultCallback resultCallback)
btGImpactShapeInterfacevirtual method for ray collision
rayTest in class btGImpactShapeInterfacepublic void processAllTriangles(btTriangleCallback callback, @Const @ByRef btVector3 aabbMin, @Const @ByRef btVector3 aabbMax)
processAllTriangles in class btGImpactShapeInterfacepublic void processAllTrianglesRay(btTriangleCallback callback, @Const @ByRef btVector3 rayFrom, @Const @ByRef btVector3 rayTo)
btGImpactShapeInterfaceprocessAllTrianglesRay in class btGImpactShapeInterfacepublic int calculateSerializeBufferSize()
calculateSerializeBufferSize in class btCollisionShape@Cast(value="const char*") public BytePointer serialize(Pointer dataBuffer, btSerializer serializer)
serialize in class btCollisionShapeCopyright © 2024. All rights reserved.