Class: btCollisionObject
Ammo.btCollisionObject
Hierarchy
btCollisionObject
Constructors
Properties
Methods
- setAnisotropicFriction
- getCollisionShape
- setContactProcessingThreshold
- setActivationState
- forceActivationState
- activate
- isActive
- isKinematicObject
- isStaticObject
- isStaticOrKinematicObject
- getRestitution
- getFriction
- getRollingFriction
- setRestitution
- setFriction
- setRollingFriction
- getWorldTransform
- getCollisionFlags
- setCollisionFlags
- setWorldTransform
- setCollisionShape
- setCcdMotionThreshold
- setCcdSweptSphereRadius
- getUserIndex
- setUserIndex
- getUserPointer
- setUserPointer
- getBroadphaseHandle
Constructors
constructor
• new btCollisionObject(): btCollisionObject
Returns
Properties
kB
• kB: number
Defined in
Methods
setAnisotropicFriction
▸ setAnisotropicFriction(anisotropicFriction
, frictionMode
): void
Parameters
Name | Type |
---|---|
anisotropicFriction | btVector3 |
frictionMode | number |
Returns
void
Defined in
getCollisionShape
▸ getCollisionShape(): btCollisionShape
Returns
Defined in
setContactProcessingThreshold
▸ setContactProcessingThreshold(contactProcessingThreshold
): void
Parameters
Name | Type |
---|---|
contactProcessingThreshold | number |
Returns
void
Defined in
setActivationState
▸ setActivationState(newState
): void
Parameters
Name | Type |
---|---|
newState | number |
Returns
void
Defined in
forceActivationState
▸ forceActivationState(newState
): void
Parameters
Name | Type |
---|---|
newState | number |
Returns
void
Defined in
activate
▸ activate(forceActivation?
): void
Parameters
Name | Type |
---|---|
forceActivation? | boolean |
Returns
void
Defined in
isActive
▸ isActive(): boolean
Returns
boolean
Defined in
isKinematicObject
▸ isKinematicObject(): boolean
Returns
boolean
Defined in
isStaticObject
▸ isStaticObject(): boolean
Returns
boolean
Defined in
isStaticOrKinematicObject
▸ isStaticOrKinematicObject(): boolean
Returns
boolean
Defined in
getRestitution
▸ getRestitution(): number
Returns
number
Defined in
getFriction
▸ getFriction(): number
Returns
number
Defined in
getRollingFriction
▸ getRollingFriction(): number
Returns
number
Defined in
setRestitution
▸ setRestitution(rest
): void
Parameters
Name | Type |
---|---|
rest | number |
Returns
void
Defined in
setFriction
▸ setFriction(frict
): void
Parameters
Name | Type |
---|---|
frict | number |
Returns
void
Defined in
setRollingFriction
▸ setRollingFriction(frict
): void
Parameters
Name | Type |
---|---|
frict | number |
Returns
void
Defined in
getWorldTransform
▸ getWorldTransform(): btTransform
Returns
Defined in
getCollisionFlags
▸ getCollisionFlags(): number
Returns
number
Defined in
setCollisionFlags
▸ setCollisionFlags(flags
): void
Parameters
Name | Type |
---|---|
flags | number |
Returns
void
Defined in
setWorldTransform
▸ setWorldTransform(worldTrans
): void
Parameters
Name | Type |
---|---|
worldTrans | btTransform |
Returns
void
Defined in
setCollisionShape
▸ setCollisionShape(collisionShape
): void
Parameters
Name | Type |
---|---|
collisionShape | btCollisionShape |
Returns
void
Defined in
setCcdMotionThreshold
▸ setCcdMotionThreshold(ccdMotionThreshold
): void
Parameters
Name | Type |
---|---|
ccdMotionThreshold | number |
Returns
void
Defined in
setCcdSweptSphereRadius
▸ setCcdSweptSphereRadius(radius
): void
Parameters
Name | Type |
---|---|
radius | number |
Returns
void
Defined in
getUserIndex
▸ getUserIndex(): number
Returns
number
Defined in
setUserIndex
▸ setUserIndex(index
): void
Parameters
Name | Type |
---|---|
index | number |
Returns
void
Defined in
getUserPointer
▸ getUserPointer(): unknown
Returns
unknown
Defined in
setUserPointer
▸ setUserPointer(userPointer
): void
Parameters
Name | Type |
---|---|
userPointer | unknown |
Returns
void
Defined in
getBroadphaseHandle
▸ getBroadphaseHandle(): btBroadphaseProxy