@NoOffset @Properties(inherit=BulletCollision.class) public class btGImpactShapeInterface extends btConcaveShape
Pointer.CustomDeallocator, Pointer.Deallocator, Pointer.NativeDeallocator, Pointer.ReferenceCounter| Constructor and Description |
|---|
btGImpactShapeInterface(Pointer p)
Pointer cast constructor.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
childrenHasTransform()
if true, then its children must get transforms.
|
void |
getAabb(btTransform t,
btVector3 aabbMin,
btVector3 aabbMax)
If the Bounding box is not updated, then this class attemps to calculate it.
|
btGImpactQuantizedBvh |
getBoxSet()
gets boxset
|
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
\{
|
btVector3 |
getLocalScaling() |
int |
getNumChildShapes()
Gets the number of children
|
btPrimitiveManagerBase |
getPrimitiveManager()
Obtains the primitive manager
|
void |
getPrimitiveTriangle(int index,
btPrimitiveTriangle triangle)
if this trimesh
|
int |
getShapeType()
Obtains the local box, which is the global calculated box of the total of subshapes
|
boolean |
hasBoxSet()
Determines if this class has a hierarchy structure for sorting its primitives
|
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 the box set
|
void |
processAllTriangles(btTriangleCallback callback,
btVector3 aabbMin,
btVector3 aabbMax)
Function for retrieve triangles.
|
void |
processAllTrianglesRay(btTriangleCallback arg0,
btVector3 arg1,
btVector3 arg2)
Function for retrieve triangles.
|
void |
rayTest(btVector3 rayFrom,
btVector3 rayTo,
btCollisionWorld.RayResultCallback resultCallback)
\}
|
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() |
void |
updateBound()
performs refit operation
/**
Updates the entire Box set of this shape.
|
getMargincalculateLocalInertia, calculateSerializeBufferSize, calculateTemporalAabb, getAngularMotionDisc, getAnisotropicRollingFrictionDirection, getBoundingSphere, getBoundingSphere, getBoundingSphere, getContactBreakingThreshold, getName, 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, 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 btGImpactShapeInterface(Pointer p)
Pointer(Pointer).public void updateBound()
public void getAabb(@Const @ByRef btTransform t, @ByRef btVector3 aabbMin, @ByRef btVector3 aabbMax)
getAabb in class btCollisionShapepublic void postUpdate()
public int getShapeType()
getShapeType in class btCollisionShapepublic void setLocalScaling(@Const @ByRef btVector3 scaling)
setLocalScaling in class btCollisionShape@Const @ByRef public btVector3 getLocalScaling()
getLocalScaling in class btCollisionShapepublic void setMargin(@Cast(value="btScalar") double margin)
setMargin in class btConcaveShape@Cast(value="eGIMPACT_SHAPE_TYPE") public int getGImpactShapeType()
Base method for determinig which kind of GIMPACT shape we get
@Cast(value="const btGImpactBoxSet*") public btGImpactQuantizedBvh getBoxSet()
@Cast(value="bool") public boolean hasBoxSet()
@Const public btPrimitiveManagerBase getPrimitiveManager()
public int getNumChildShapes()
@Cast(value="bool") public boolean childrenHasTransform()
@Cast(value="bool") public boolean needsRetrieveTriangles()
@Cast(value="bool") public boolean needsRetrieveTetrahedrons()
public void getBulletTriangle(int prim_index,
@ByRef
btTriangleShapeEx triangle)
public void getBulletTetrahedron(int prim_index,
@ByRef
btTetrahedronShapeEx tetrahedron)
public void lockChildShapes()
public void unlockChildShapes()
public void getPrimitiveTriangle(int index,
@ByRef
btPrimitiveTriangle triangle)
public void getChildAabb(int child_index,
@Const @ByRef
btTransform t,
@ByRef
btVector3 aabbMin,
@ByRef
btVector3 aabbMax)
public btCollisionShape getChildShape(int index)
@ByVal public btTransform getChildTransform(int index)
public void setChildTransform(int index,
@Const @ByRef
btTransform transform)
public void rayTest(@Const @ByRef btVector3 rayFrom, @Const @ByRef btVector3 rayTo, @ByRef btCollisionWorld.RayResultCallback resultCallback)
virtual method for ray collision
public void processAllTriangles(btTriangleCallback callback, @Const @ByRef btVector3 aabbMin, @Const @ByRef btVector3 aabbMax)
processAllTriangles in class btConcaveShapeCopyright © 2024. All rights reserved.