C# Class BulletCSharp.btRigidBody

Inheritance: IDisposable
Exibir arquivo Open project: sanglin307/BulletUnity3D Class Usage Examples

Protected Properties

Property Type Description
swigCMemOwn bool

Public Methods

Method Description
Dispose ( ) : void
GetCollisionObject ( ) : SWIGTYPE_p_btCollisionObject
GetSwigPtr ( ) : SWIGTYPE_p_btRigidBody
addConstraintRef ( SWIGTYPE_p_btTypedConstraint c ) : void
applyCentralForce ( SWIGTYPE_p_btVector3 force ) : void
applyCentralImpulse ( SWIGTYPE_p_btVector3 impulse ) : void
applyDamping ( float timeStep ) : void
applyForce ( SWIGTYPE_p_btVector3 force, SWIGTYPE_p_btVector3 rel_pos ) : void
applyGravity ( ) : void
applyImpulse ( SWIGTYPE_p_btVector3 impulse, SWIGTYPE_p_btVector3 rel_pos ) : void
applyTorque ( SWIGTYPE_p_btVector3 torque ) : void
applyTorqueImpulse ( SWIGTYPE_p_btVector3 torque ) : void
btRigidBody ( btRigidBodyConstructionInfo constructionInfo ) : System
btRigidBody ( float mass, SWIGTYPE_p_btMotionState motionState, SWIGTYPE_p_btCollisionShape collisionShape ) : System
btRigidBody ( float mass, SWIGTYPE_p_btMotionState motionState, SWIGTYPE_p_btCollisionShape collisionShape, SWIGTYPE_p_btVector3 localInertia ) : System
calculateSerializeBufferSize ( ) : int
checkCollideWithOverride ( SWIGTYPE_p_btCollisionObject co ) : bool
clearForces ( ) : void
computeAngularImpulseDenominator ( SWIGTYPE_p_btVector3 axis ) : float
computeGyroscopicForce ( float maxGyroscopicForce ) : SWIGTYPE_p_btVector3
computeImpulseDenominator ( SWIGTYPE_p_btVector3 pos, SWIGTYPE_p_btVector3 normal ) : float
getAabb ( SWIGTYPE_p_btVector3 aabbMin, SWIGTYPE_p_btVector3 aabbMax ) : void
getAngularDamping ( ) : float
getAngularFactor ( ) : SWIGTYPE_p_btVector3
getAngularSleepingThreshold ( ) : float
getAngularVelocity ( ) : SWIGTYPE_p_btVector3
getBroadphaseProxy ( ) : SWIGTYPE_p_btBroadphaseProxy
getCenterOfMassPosition ( ) : SWIGTYPE_p_btVector3
getCenterOfMassTransform ( ) : SWIGTYPE_p_btTransform
getCollisionShape ( ) : SWIGTYPE_p_btCollisionShape
getConstraintRef ( int index ) : SWIGTYPE_p_btTypedConstraint
getFlags ( ) : int
getGravity ( ) : SWIGTYPE_p_btVector3
getInvInertiaDiagLocal ( ) : SWIGTYPE_p_btVector3
getInvInertiaTensorWorld ( ) : SWIGTYPE_p_btMatrix3x3
getInvMass ( ) : float
getLinearDamping ( ) : float
getLinearFactor ( ) : SWIGTYPE_p_btVector3
getLinearSleepingThreshold ( ) : float
getLinearVelocity ( ) : SWIGTYPE_p_btVector3
getMotionState ( ) : SWIGTYPE_p_btMotionState
getNumConstraintRefs ( ) : int
getOrientation ( ) : SWIGTYPE_p_btQuaternion
getTotalForce ( ) : SWIGTYPE_p_btVector3
getTotalTorque ( ) : SWIGTYPE_p_btVector3
getVelocityInLocalPoint ( SWIGTYPE_p_btVector3 rel_pos ) : SWIGTYPE_p_btVector3
integrateVelocities ( float step ) : void
isInWorld ( ) : bool
predictIntegratedTransform ( float step, SWIGTYPE_p_btTransform predictedTransform ) : void
proceedToTransform ( SWIGTYPE_p_btTransform newTrans ) : void
removeConstraintRef ( SWIGTYPE_p_btTypedConstraint c ) : void
saveKinematicState ( float step ) : void
serialize ( SWIGTYPE_p_void dataBuffer, SWIGTYPE_p_btSerializer serializer ) : string
serializeSingleObject ( SWIGTYPE_p_btSerializer serializer ) : void
setAngularFactor ( SWIGTYPE_p_btVector3 angFac ) : void
setAngularFactor ( float angFac ) : void
setAngularVelocity ( SWIGTYPE_p_btVector3 ang_vel ) : void
setCenterOfMassTransform ( SWIGTYPE_p_btTransform xform ) : void
setDamping ( float lin_damping, float ang_damping ) : void
setFlags ( int flags ) : void
setGravity ( SWIGTYPE_p_btVector3 acceleration ) : void
setInvInertiaDiagLocal ( SWIGTYPE_p_btVector3 diagInvInertia ) : void
setLinearFactor ( SWIGTYPE_p_btVector3 linearFactor ) : void
setLinearVelocity ( SWIGTYPE_p_btVector3 lin_vel ) : void
setMassProps ( float mass, SWIGTYPE_p_btVector3 inertia ) : void
setMotionState ( SWIGTYPE_p_btMotionState motionState ) : void
setNewBroadphaseProxy ( SWIGTYPE_p_btBroadphaseProxy broadphaseProxy ) : void
setSleepingThresholds ( float linear, float angular ) : void
translate ( SWIGTYPE_p_btVector3 v ) : void
upcast ( SWIGTYPE_p_btCollisionObject colObj ) : btRigidBody
updateDeactivation ( float timeStep ) : void
updateInertiaTensor ( ) : void
wantsSleeping ( ) : bool

Private Methods

Method Description
btRigidBody ( IntPtr cPtr, bool cMemoryOwn ) : System
getCPtr ( btRigidBody obj ) : HandleRef

Method Details

Dispose() public method

public Dispose ( ) : void
return void

GetCollisionObject() public method

public GetCollisionObject ( ) : SWIGTYPE_p_btCollisionObject
return SWIGTYPE_p_btCollisionObject

GetSwigPtr() public method

public GetSwigPtr ( ) : SWIGTYPE_p_btRigidBody
return SWIGTYPE_p_btRigidBody

addConstraintRef() public method

public addConstraintRef ( SWIGTYPE_p_btTypedConstraint c ) : void
c SWIGTYPE_p_btTypedConstraint
return void

applyCentralForce() public method

public applyCentralForce ( SWIGTYPE_p_btVector3 force ) : void
force SWIGTYPE_p_btVector3
return void

applyCentralImpulse() public method

public applyCentralImpulse ( SWIGTYPE_p_btVector3 impulse ) : void
impulse SWIGTYPE_p_btVector3
return void

applyDamping() public method

public applyDamping ( float timeStep ) : void
timeStep float
return void

applyForce() public method

public applyForce ( SWIGTYPE_p_btVector3 force, SWIGTYPE_p_btVector3 rel_pos ) : void
force SWIGTYPE_p_btVector3
rel_pos SWIGTYPE_p_btVector3
return void

applyGravity() public method

public applyGravity ( ) : void
return void

applyImpulse() public method

public applyImpulse ( SWIGTYPE_p_btVector3 impulse, SWIGTYPE_p_btVector3 rel_pos ) : void
impulse SWIGTYPE_p_btVector3
rel_pos SWIGTYPE_p_btVector3
return void

applyTorque() public method

public applyTorque ( SWIGTYPE_p_btVector3 torque ) : void
torque SWIGTYPE_p_btVector3
return void

applyTorqueImpulse() public method

public applyTorqueImpulse ( SWIGTYPE_p_btVector3 torque ) : void
torque SWIGTYPE_p_btVector3
return void

btRigidBody() public method

public btRigidBody ( btRigidBodyConstructionInfo constructionInfo ) : System
constructionInfo btRigidBodyConstructionInfo
return System

btRigidBody() public method

public btRigidBody ( float mass, SWIGTYPE_p_btMotionState motionState, SWIGTYPE_p_btCollisionShape collisionShape ) : System
mass float
motionState SWIGTYPE_p_btMotionState
collisionShape SWIGTYPE_p_btCollisionShape
return System

btRigidBody() public method

public btRigidBody ( float mass, SWIGTYPE_p_btMotionState motionState, SWIGTYPE_p_btCollisionShape collisionShape, SWIGTYPE_p_btVector3 localInertia ) : System
mass float
motionState SWIGTYPE_p_btMotionState
collisionShape SWIGTYPE_p_btCollisionShape
localInertia SWIGTYPE_p_btVector3
return System

calculateSerializeBufferSize() public method

public calculateSerializeBufferSize ( ) : int
return int

checkCollideWithOverride() public method

public checkCollideWithOverride ( SWIGTYPE_p_btCollisionObject co ) : bool
co SWIGTYPE_p_btCollisionObject
return bool

clearForces() public method

public clearForces ( ) : void
return void

computeAngularImpulseDenominator() public method

public computeAngularImpulseDenominator ( SWIGTYPE_p_btVector3 axis ) : float
axis SWIGTYPE_p_btVector3
return float

computeGyroscopicForce() public method

public computeGyroscopicForce ( float maxGyroscopicForce ) : SWIGTYPE_p_btVector3
maxGyroscopicForce float
return SWIGTYPE_p_btVector3

computeImpulseDenominator() public method

public computeImpulseDenominator ( SWIGTYPE_p_btVector3 pos, SWIGTYPE_p_btVector3 normal ) : float
pos SWIGTYPE_p_btVector3
normal SWIGTYPE_p_btVector3
return float

getAabb() public method

public getAabb ( SWIGTYPE_p_btVector3 aabbMin, SWIGTYPE_p_btVector3 aabbMax ) : void
aabbMin SWIGTYPE_p_btVector3
aabbMax SWIGTYPE_p_btVector3
return void

getAngularDamping() public method

public getAngularDamping ( ) : float
return float

getAngularFactor() public method

public getAngularFactor ( ) : SWIGTYPE_p_btVector3
return SWIGTYPE_p_btVector3

getAngularSleepingThreshold() public method

public getAngularSleepingThreshold ( ) : float
return float

getAngularVelocity() public method

public getAngularVelocity ( ) : SWIGTYPE_p_btVector3
return SWIGTYPE_p_btVector3

getBroadphaseProxy() public method

public getBroadphaseProxy ( ) : SWIGTYPE_p_btBroadphaseProxy
return SWIGTYPE_p_btBroadphaseProxy

getCenterOfMassPosition() public method

public getCenterOfMassPosition ( ) : SWIGTYPE_p_btVector3
return SWIGTYPE_p_btVector3

getCenterOfMassTransform() public method

public getCenterOfMassTransform ( ) : SWIGTYPE_p_btTransform
return SWIGTYPE_p_btTransform

getCollisionShape() public method

public getCollisionShape ( ) : SWIGTYPE_p_btCollisionShape
return SWIGTYPE_p_btCollisionShape

getConstraintRef() public method

public getConstraintRef ( int index ) : SWIGTYPE_p_btTypedConstraint
index int
return SWIGTYPE_p_btTypedConstraint

getFlags() public method

public getFlags ( ) : int
return int

getGravity() public method

public getGravity ( ) : SWIGTYPE_p_btVector3
return SWIGTYPE_p_btVector3

getInvInertiaDiagLocal() public method

public getInvInertiaDiagLocal ( ) : SWIGTYPE_p_btVector3
return SWIGTYPE_p_btVector3

getInvInertiaTensorWorld() public method

public getInvInertiaTensorWorld ( ) : SWIGTYPE_p_btMatrix3x3
return SWIGTYPE_p_btMatrix3x3

getInvMass() public method

public getInvMass ( ) : float
return float

getLinearDamping() public method

public getLinearDamping ( ) : float
return float

getLinearFactor() public method

public getLinearFactor ( ) : SWIGTYPE_p_btVector3
return SWIGTYPE_p_btVector3

getLinearSleepingThreshold() public method

public getLinearSleepingThreshold ( ) : float
return float

getLinearVelocity() public method

public getLinearVelocity ( ) : SWIGTYPE_p_btVector3
return SWIGTYPE_p_btVector3

getMotionState() public method

public getMotionState ( ) : SWIGTYPE_p_btMotionState
return SWIGTYPE_p_btMotionState

getNumConstraintRefs() public method

public getNumConstraintRefs ( ) : int
return int

getOrientation() public method

public getOrientation ( ) : SWIGTYPE_p_btQuaternion
return SWIGTYPE_p_btQuaternion

getTotalForce() public method

public getTotalForce ( ) : SWIGTYPE_p_btVector3
return SWIGTYPE_p_btVector3

getTotalTorque() public method

public getTotalTorque ( ) : SWIGTYPE_p_btVector3
return SWIGTYPE_p_btVector3

getVelocityInLocalPoint() public method

public getVelocityInLocalPoint ( SWIGTYPE_p_btVector3 rel_pos ) : SWIGTYPE_p_btVector3
rel_pos SWIGTYPE_p_btVector3
return SWIGTYPE_p_btVector3

integrateVelocities() public method

public integrateVelocities ( float step ) : void
step float
return void

isInWorld() public method

public isInWorld ( ) : bool
return bool

predictIntegratedTransform() public method

public predictIntegratedTransform ( float step, SWIGTYPE_p_btTransform predictedTransform ) : void
step float
predictedTransform SWIGTYPE_p_btTransform
return void

proceedToTransform() public method

public proceedToTransform ( SWIGTYPE_p_btTransform newTrans ) : void
newTrans SWIGTYPE_p_btTransform
return void

removeConstraintRef() public method

public removeConstraintRef ( SWIGTYPE_p_btTypedConstraint c ) : void
c SWIGTYPE_p_btTypedConstraint
return void

saveKinematicState() public method

public saveKinematicState ( float step ) : void
step float
return void

serialize() public method

public serialize ( SWIGTYPE_p_void dataBuffer, SWIGTYPE_p_btSerializer serializer ) : string
dataBuffer SWIGTYPE_p_void
serializer SWIGTYPE_p_btSerializer
return string

serializeSingleObject() public method

public serializeSingleObject ( SWIGTYPE_p_btSerializer serializer ) : void
serializer SWIGTYPE_p_btSerializer
return void

setAngularFactor() public method

public setAngularFactor ( SWIGTYPE_p_btVector3 angFac ) : void
angFac SWIGTYPE_p_btVector3
return void

setAngularFactor() public method

public setAngularFactor ( float angFac ) : void
angFac float
return void

setAngularVelocity() public method

public setAngularVelocity ( SWIGTYPE_p_btVector3 ang_vel ) : void
ang_vel SWIGTYPE_p_btVector3
return void

setCenterOfMassTransform() public method

public setCenterOfMassTransform ( SWIGTYPE_p_btTransform xform ) : void
xform SWIGTYPE_p_btTransform
return void

setDamping() public method

public setDamping ( float lin_damping, float ang_damping ) : void
lin_damping float
ang_damping float
return void

setFlags() public method

public setFlags ( int flags ) : void
flags int
return void

setGravity() public method

public setGravity ( SWIGTYPE_p_btVector3 acceleration ) : void
acceleration SWIGTYPE_p_btVector3
return void

setInvInertiaDiagLocal() public method

public setInvInertiaDiagLocal ( SWIGTYPE_p_btVector3 diagInvInertia ) : void
diagInvInertia SWIGTYPE_p_btVector3
return void

setLinearFactor() public method

public setLinearFactor ( SWIGTYPE_p_btVector3 linearFactor ) : void
linearFactor SWIGTYPE_p_btVector3
return void

setLinearVelocity() public method

public setLinearVelocity ( SWIGTYPE_p_btVector3 lin_vel ) : void
lin_vel SWIGTYPE_p_btVector3
return void

setMassProps() public method

public setMassProps ( float mass, SWIGTYPE_p_btVector3 inertia ) : void
mass float
inertia SWIGTYPE_p_btVector3
return void

setMotionState() public method

public setMotionState ( SWIGTYPE_p_btMotionState motionState ) : void
motionState SWIGTYPE_p_btMotionState
return void

setNewBroadphaseProxy() public method

public setNewBroadphaseProxy ( SWIGTYPE_p_btBroadphaseProxy broadphaseProxy ) : void
broadphaseProxy SWIGTYPE_p_btBroadphaseProxy
return void

setSleepingThresholds() public method

public setSleepingThresholds ( float linear, float angular ) : void
linear float
angular float
return void

translate() public method

public translate ( SWIGTYPE_p_btVector3 v ) : void
v SWIGTYPE_p_btVector3
return void

upcast() public static method

public static upcast ( SWIGTYPE_p_btCollisionObject colObj ) : btRigidBody
colObj SWIGTYPE_p_btCollisionObject
return btRigidBody

updateDeactivation() public method

public updateDeactivation ( float timeStep ) : void
timeStep float
return void

updateInertiaTensor() public method

public updateInertiaTensor ( ) : void
return void

wantsSleeping() public method

public wantsSleeping ( ) : bool
return bool

Property Details

swigCMemOwn protected_oe property

protected bool swigCMemOwn
return bool