@NoOffset @Properties(inherit=BulletDynamics.class) public class btRigidBody extends btCollisionObject
| Modifier and Type | Class and Description |
|---|---|
static class |
btRigidBody.btRigidBodyConstructionInfo
The btRigidBodyConstructionInfo structure provides information to create a rigid body.
|
Pointer.CustomDeallocator, Pointer.Deallocator, Pointer.NativeDeallocator, Pointer.ReferenceCounterCF_ANISOTROPIC_FRICTION, CF_ANISOTROPIC_FRICTION_DISABLED, CF_ANISOTROPIC_ROLLING_FRICTION, CF_CHARACTER_OBJECT, CF_CUSTOM_MATERIAL_CALLBACK, CF_DISABLE_SPU_COLLISION_PROCESSING, CF_DISABLE_VISUALIZE_OBJECT, CF_DYNAMIC_OBJECT, CF_HAS_COLLISION_SOUND_TRIGGER, CF_HAS_CONTACT_STIFFNESS_DAMPING, CF_HAS_CUSTOM_DEBUG_RENDERING_COLOR, CF_HAS_FRICTION_ANCHOR, CF_KINEMATIC_OBJECT, CF_NO_CONTACT_RESPONSE, CF_STATIC_OBJECT, CO_COLLISION_OBJECT, CO_FEATHERSTONE_LINK, CO_GHOST_OBJECT, CO_HF_FLUID, CO_RIGID_BODY, CO_SOFT_BODY, CO_USER_TYPE| Constructor and Description |
|---|
btRigidBody(btRigidBody.btRigidBodyConstructionInfo constructionInfo)
btRigidBody constructor using construction info
|
btRigidBody(double mass,
btMotionState motionState,
btCollisionShape collisionShape) |
btRigidBody(double mass,
btMotionState motionState,
btCollisionShape collisionShape,
btVector3 localInertia)
btRigidBody constructor for backwards compatibility.
|
btRigidBody(Pointer p)
Pointer cast constructor.
|
activate, activate, checkCollideWith, checkCollideWithOverride, forceActivationState, getActivationState, getAnisotropicFriction, getBroadphaseHandle, getCcdMotionThreshold, getCcdSquareMotionThreshold, getCcdSweptSphereRadius, getCollisionFlags, getCompanionId, getContactDamping, getContactProcessingThreshold, getContactStiffness, getCustomDebugColor, getDeactivationTime, getFriction, getHitFraction, getInternalType, getInterpolationAngularVelocity, getInterpolationLinearVelocity, getInterpolationWorldTransform, getIslandTag, getNumObjectsWithoutCollision, getObjectWithoutCollision, getPointer, getRestitution, getRollingFriction, getSpinningFriction, getUpdateRevisionInternal, getUserIndex, getUserIndex2, getUserIndex3, getUserPointer, getWorldArrayIndex, getWorldTransform, hasAnisotropicFriction, hasAnisotropicFriction, hasContactResponse, internalGetExtensionPointer, internalSetExtensionPointer, isActive, isKinematicObject, isStaticObject, isStaticOrKinematicObject, mergesSimulationIslands, position, removeCustomDebugColor, setActivationState, setAnisotropicFriction, setAnisotropicFriction, setBroadphaseHandle, setCcdMotionThreshold, setCcdSweptSphereRadius, setCollisionFlags, setCollisionShape, setCompanionId, setContactProcessingThreshold, setContactStiffnessAndDamping, setCustomDebugColor, setDeactivationTime, setFriction, setHitFraction, setIgnoreCollisionCheck, setInterpolationAngularVelocity, setInterpolationLinearVelocity, setInterpolationWorldTransform, setIslandTag, setRestitution, setRollingFriction, setSpinningFriction, setUserIndex, setUserIndex2, setUserIndex3, setUserPointer, setWorldArrayIndex, setWorldTransformaddress, 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 btRigidBody(Pointer p)
Pointer(Pointer).public btRigidBody(@Const @ByRef btRigidBody.btRigidBodyConstructionInfo constructionInfo)
public btRigidBody(@Cast(value="btScalar") double mass, btMotionState motionState, btCollisionShape collisionShape, @Const @ByRef(nullValue="btVector3(0, 0, 0)") btVector3 localInertia)
public btRigidBody(@Cast(value="btScalar") double mass, btMotionState motionState, btCollisionShape collisionShape)
public void proceedToTransform(@Const @ByRef btTransform newTrans)
@Const public static btRigidBody upcast(@Const btCollisionObject colObj)
public void predictIntegratedTransform(@Cast(value="btScalar") double step, @ByRef btTransform predictedTransform)
public void applyGravity()
public void clearGravity()
public void setDamping(@Cast(value="btScalar") double lin_damping, @Cast(value="btScalar") double ang_damping)
public btCollisionShape getCollisionShape()
getCollisionShape in class btCollisionObjectpublic void setMassProps(@Cast(value="btScalar") double mass, @Const @ByRef btVector3 inertia)
@Const @ByRef public btMatrix3x3 getInvInertiaTensorWorld()
public void setCenterOfMassTransform(@Const @ByRef btTransform xform)
public void setSleepingThresholds(@Cast(value="btScalar") double linear, @Cast(value="btScalar") double angular)
public void applyImpulse(@Const @ByRef btVector3 impulse, @Const @ByRef btVector3 rel_pos)
public void applyPushImpulse(@Const @ByRef btVector3 impulse, @Const @ByRef btVector3 rel_pos)
public void clearForces()
public void updateInertiaTensor()
@ByVal public btQuaternion getOrientation()
@Const @ByRef public btTransform getCenterOfMassTransform()
@ByVal public btVector3 getVelocityInLocalPoint(@Const @ByRef btVector3 rel_pos)
@ByVal public btVector3 getPushVelocityInLocalPoint(@Const @ByRef btVector3 rel_pos)
@Cast(value="btScalar") public double computeImpulseDenominator(@Const @ByRef btVector3 pos, @Const @ByRef btVector3 normal)
@Cast(value="btScalar") public double computeAngularImpulseDenominator(@Const @ByRef btVector3 axis)
public btBroadphaseProxy getBroadphaseProxy()
public void setNewBroadphaseProxy(btBroadphaseProxy broadphaseProxy)
public btMotionState getMotionState()
public void setMotionState(btMotionState motionState)
public int m_contactSolverType()
public btRigidBody m_contactSolverType(int setter)
public int m_frictionSolverType()
public btRigidBody m_frictionSolverType(int setter)
public void addConstraintRef(btTypedConstraint c)
public void removeConstraintRef(btTypedConstraint c)
public btTypedConstraint getConstraintRef(int index)
public int getNumConstraintRefs()
public void setFlags(int flags)
public int getFlags()
@ByVal public btVector3 computeGyroscopicImpulseImplicit_World(@Cast(value="btScalar") double dt)
@ByVal public btVector3 computeGyroscopicImpulseImplicit_Body(@Cast(value="btScalar") double step)
@ByVal public btVector3 computeGyroscopicForceExplicit(@Cast(value="btScalar") double maxGyroscopicForce)
public int calculateSerializeBufferSize()
calculateSerializeBufferSize in class btCollisionObject@Cast(value="const char*") public BytePointer serialize(Pointer dataBuffer, btSerializer serializer)
serialize in class btCollisionObjectpublic void serializeSingleObject(btSerializer serializer)
serializeSingleObject in class btCollisionObjectCopyright © 2024. All rights reserved.