@NoOffset @Properties(inherit=BulletCollision.class) public class btGImpactCompoundShape extends btGImpactShapeInterface
| Modifier and Type | Class and Description |
|---|---|
static class |
btGImpactCompoundShape.CompoundPrimitiveManager
compound primitive manager
|
Pointer.CustomDeallocator, Pointer.Deallocator, Pointer.NativeDeallocator, Pointer.ReferenceCounter| Constructor and Description |
|---|
btGImpactCompoundShape() |
btGImpactCompoundShape(boolean children_has_transform) |
btGImpactCompoundShape(long size)
Native array allocator.
|
btGImpactCompoundShape(Pointer p)
Pointer cast constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addChildShape(btCollisionShape shape)
Use this method for adding children.
|
void |
addChildShape(btTransform localTransform,
btCollisionShape shape)
Use this method for adding children.
|
void |
calculateLocalInertia(double mass,
btVector3 inertia)
Calculates the exact inertia tensor for this shape
|
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
|
btGImpactCompoundShape.CompoundPrimitiveManager |
getCompoundPrimitiveManager()
Obtains the compopund primitive manager
|
int |
getGImpactShapeType()
Subshape member functions
\{
|
BytePointer |
getName() |
int |
getNumChildShapes()
Gets the number of children
|
btGImpactCompoundShape |
getPointer(long i) |
btPrimitiveManagerBase |
getPrimitiveManager()
Obtains the primitive manager
|
boolean |
needsRetrieveTetrahedrons()
Determines if this shape has tetrahedrons
|
boolean |
needsRetrieveTriangles()
Determines if this shape has triangles
|
btGImpactCompoundShape |
position(long position) |
void |
setChildTransform(int index,
btTransform transform)
Sets the children transform
/**
\post You must call updateBound() for update the box set.
|
getAabb, getBoxSet, getLocalScaling, getPrimitiveTriangle, getShapeType, hasBoxSet, lockChildShapes, postUpdate, processAllTriangles, processAllTrianglesRay, rayTest, setLocalScaling, setMargin, unlockChildShapes, updateBoundgetMargincalculateSerializeBufferSize, 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 btGImpactCompoundShape(Pointer p)
Pointer(Pointer).public btGImpactCompoundShape(long size)
Pointer.position(long).public btGImpactCompoundShape(@Cast(value="bool") boolean children_has_transform)
public btGImpactCompoundShape()
public btGImpactCompoundShape position(long position)
public btGImpactCompoundShape getPointer(long i)
getPointer in class Pointer@Cast(value="bool") public boolean childrenHasTransform()
childrenHasTransform in class btGImpactShapeInterface@Const public btPrimitiveManagerBase getPrimitiveManager()
getPrimitiveManager in class btGImpactShapeInterfacepublic btGImpactCompoundShape.CompoundPrimitiveManager getCompoundPrimitiveManager()
public int getNumChildShapes()
getNumChildShapes in class btGImpactShapeInterfacepublic void addChildShape(@Const @ByRef btTransform localTransform, btCollisionShape shape)
public void addChildShape(btCollisionShape shape)
public btCollisionShape getChildShape(int index)
getChildShape in class btGImpactShapeInterfacepublic void getChildAabb(int child_index,
@Const @ByRef
btTransform t,
@ByRef
btVector3 aabbMin,
@ByRef
btVector3 aabbMax)
getChildAabb 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="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 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 btGImpactShapeInterfaceCopyright © 2024. All rights reserved.