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