@NoOffset @Properties(inherit=BulletCollision.class) public class btCompoundShape extends btCollisionShape
Pointer.CustomDeallocator, Pointer.Deallocator, Pointer.NativeDeallocator, Pointer.ReferenceCounter| Constructor and Description |
|---|
btCompoundShape() |
btCompoundShape(boolean enableDynamicAabbTree,
int initialChildCapacity) |
btCompoundShape(long size)
Native array allocator.
|
btCompoundShape(Pointer p)
Pointer cast constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addChildShape(btTransform localTransform,
btCollisionShape shape) |
void |
calculateLocalInertia(double mass,
btVector3 inertia) |
void |
calculatePrincipalAxisTransform(double[] masses,
btTransform principal,
btVector3 inertia) |
void |
calculatePrincipalAxisTransform(DoubleBuffer masses,
btTransform principal,
btVector3 inertia) |
void |
calculatePrincipalAxisTransform(DoublePointer masses,
btTransform principal,
btVector3 inertia)
computes the exact moment of inertia and the transform from the coordinate system defined by the principal axes of the moment of inertia
and the center of mass to the current coordinate system.
|
int |
calculateSerializeBufferSize() |
void |
createAabbTreeFromChildren() |
void |
getAabb(btTransform t,
btVector3 aabbMin,
btVector3 aabbMax)
getAabb's default implementation is brute force, expected derived classes to implement a fast dedicated version
|
btCompoundShapeChild |
getChildList() |
btCollisionShape |
getChildShape(int index) |
btTransform |
getChildTransform(int index) |
btDbvt |
getDynamicAabbTree() |
btVector3 |
getLocalScaling() |
double |
getMargin() |
BytePointer |
getName() |
int |
getNumChildShapes() |
btCompoundShape |
getPointer(long i) |
int |
getUpdateRevision() |
btCompoundShape |
position(long position) |
void |
recalculateLocalAabb()
Re-calculate the local Aabb.
|
void |
removeChildShape(btCollisionShape shape)
Remove all children shapes that contain the specified shape
|
void |
removeChildShapeByIndex(int childShapeindex) |
BytePointer |
serialize(Pointer dataBuffer,
btSerializer serializer)
fills the dataBuffer and returns the struct name (and 0 on failure)
|
void |
setLocalScaling(btVector3 scaling) |
void |
setMargin(double margin) |
void |
updateChildTransform(int childIndex,
btTransform newChildTransform) |
void |
updateChildTransform(int childIndex,
btTransform newChildTransform,
boolean shouldRecalculateLocalAabb)
set a new transform for a child, and update internal data structures (local aabb and dynamic tree)
|
calculateTemporalAabb, getAngularMotionDisc, getAnisotropicRollingFrictionDirection, getBoundingSphere, getBoundingSphere, getBoundingSphere, getContactBreakingThreshold, getShapeType, 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, 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 btCompoundShape(Pointer p)
Pointer(Pointer).public btCompoundShape(long size)
Pointer.position(long).public btCompoundShape(@Cast(value="bool") boolean enableDynamicAabbTree, int initialChildCapacity)
public btCompoundShape()
public btCompoundShape position(long position)
public btCompoundShape getPointer(long i)
getPointer in class Pointerpublic void addChildShape(@Const @ByRef btTransform localTransform, btCollisionShape shape)
public void removeChildShape(btCollisionShape shape)
public void removeChildShapeByIndex(int childShapeindex)
public int getNumChildShapes()
public btCollisionShape getChildShape(int index)
@ByRef public btTransform getChildTransform(int index)
public void updateChildTransform(int childIndex,
@Const @ByRef
btTransform newChildTransform,
@Cast(value="bool")
boolean shouldRecalculateLocalAabb)
public void updateChildTransform(int childIndex,
@Const @ByRef
btTransform newChildTransform)
public btCompoundShapeChild getChildList()
public void getAabb(@Const @ByRef btTransform t, @ByRef btVector3 aabbMin, @ByRef btVector3 aabbMax)
getAabb in class btCollisionShapepublic void recalculateLocalAabb()
public void setLocalScaling(@Const @ByRef btVector3 scaling)
setLocalScaling in class btCollisionShape@Const @ByRef public btVector3 getLocalScaling()
getLocalScaling in class btCollisionShapepublic void calculateLocalInertia(@Cast(value="btScalar") double mass, @ByRef btVector3 inertia)
calculateLocalInertia in class btCollisionShapepublic void setMargin(@Cast(value="btScalar") double margin)
setMargin in class btCollisionShape@Cast(value="btScalar") public double getMargin()
getMargin in class btCollisionShape@Cast(value="const char*") public BytePointer getName()
getName in class btCollisionShapepublic btDbvt getDynamicAabbTree()
public void createAabbTreeFromChildren()
public void calculatePrincipalAxisTransform(@Cast(value="const btScalar*") DoublePointer masses, @ByRef btTransform principal, @ByRef btVector3 inertia)
public void calculatePrincipalAxisTransform(@Cast(value="const btScalar*") DoubleBuffer masses, @ByRef btTransform principal, @ByRef btVector3 inertia)
public void calculatePrincipalAxisTransform(@Cast(value="const btScalar*") double[] masses, @ByRef btTransform principal, @ByRef btVector3 inertia)
public int getUpdateRevision()
public 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.