@NoOffset @Properties(inherit=BulletCollision.class) public class btCollisionShape extends Pointer
Pointer.CustomDeallocator, Pointer.Deallocator, Pointer.NativeDeallocator, Pointer.ReferenceCounter| Constructor and Description |
|---|
btCollisionShape(Pointer p)
Pointer cast constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
calculateLocalInertia(double mass,
btVector3 inertia) |
int |
calculateSerializeBufferSize() |
void |
calculateTemporalAabb(btTransform curTrans,
btVector3 linvel,
btVector3 angvel,
double timeStep,
btVector3 temporalAabbMin,
btVector3 temporalAabbMax)
calculateTemporalAabb calculates the enclosing aabb for the moving object over interval [0..timeStep)
result is conservative
|
void |
getAabb(btTransform t,
btVector3 aabbMin,
btVector3 aabbMax)
getAabb returns the axis aligned bounding box in the coordinate frame of the given transform t.
|
double |
getAngularMotionDisc()
getAngularMotionDisc returns the maximum radius needed for Conservative Advancement to handle time-of-impact with rotations.
|
btVector3 |
getAnisotropicRollingFrictionDirection()
the getAnisotropicRollingFrictionDirection can be used in combination with setAnisotropicFriction
See Bullet/Demos/RollingFrictionDemo for an example
|
void |
getBoundingSphere(btVector3 center,
double[] radius) |
void |
getBoundingSphere(btVector3 center,
DoubleBuffer radius) |
void |
getBoundingSphere(btVector3 center,
DoublePointer radius) |
double |
getContactBreakingThreshold(double defaultContactThresholdFactor) |
btVector3 |
getLocalScaling() |
double |
getMargin() |
BytePointer |
getName() |
int |
getShapeType() |
int |
getUserIndex() |
int |
getUserIndex2() |
Pointer |
getUserPointer() |
boolean |
isCompound() |
boolean |
isConcave() |
boolean |
isConvex() |
boolean |
isConvex2d() |
boolean |
isInfinite()
isInfinite is used to catch simulation error (aabb check)
|
boolean |
isNonMoving() |
boolean |
isPolyhedral() |
boolean |
isSoftBody() |
BytePointer |
serialize(Pointer dataBuffer,
btSerializer serializer)
fills the dataBuffer and returns the struct name (and 0 on failure)
|
void |
serializeSingleShape(btSerializer serializer) |
void |
setLocalScaling(btVector3 scaling) |
void |
setMargin(double margin) |
void |
setUserIndex(int index) |
void |
setUserIndex2(int index) |
void |
setUserPointer(Pointer userPtr)
optional user data pointer
|
address, 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 btCollisionShape(Pointer p)
Pointer(Pointer).public void getAabb(@Const @ByRef btTransform t, @ByRef btVector3 aabbMin, @ByRef btVector3 aabbMax)
public void getBoundingSphere(@ByRef btVector3 center, @Cast(value="btScalar*") @ByRef DoublePointer radius)
public void getBoundingSphere(@ByRef btVector3 center, @Cast(value="btScalar*") @ByRef DoubleBuffer radius)
public void getBoundingSphere(@ByRef btVector3 center, @Cast(value="btScalar*") @ByRef double[] radius)
@Cast(value="btScalar") public double getAngularMotionDisc()
@Cast(value="btScalar") public double getContactBreakingThreshold(@Cast(value="btScalar") double defaultContactThresholdFactor)
public void calculateTemporalAabb(@Const @ByRef btTransform curTrans, @Const @ByRef btVector3 linvel, @Const @ByRef btVector3 angvel, @Cast(value="btScalar") double timeStep, @ByRef btVector3 temporalAabbMin, @ByRef btVector3 temporalAabbMax)
@Cast(value="bool") public boolean isInfinite()
public void calculateLocalInertia(@Cast(value="btScalar") double mass, @ByRef btVector3 inertia)
@Cast(value="const char*") public BytePointer getName()
public int getShapeType()
@ByVal public btVector3 getAnisotropicRollingFrictionDirection()
public void setUserPointer(Pointer userPtr)
public Pointer getUserPointer()
public void setUserIndex(int index)
public int getUserIndex()
public void setUserIndex2(int index)
public int getUserIndex2()
public int calculateSerializeBufferSize()
@Cast(value="const char*") public BytePointer serialize(Pointer dataBuffer, btSerializer serializer)
public void serializeSingleShape(btSerializer serializer)
Copyright © 2024. All rights reserved.