APIdia Launch Partner
Top Inners Fields Constructors Methods
com.badlogic.gdx.physics.bullet.collision

public Class btCollisionObject

extends BulletBase
implements Disposable
Class Inheritance
All Implemented Interfaces
com.badlogic.gdx.utils.Disposable
Known Direct Subclasses
com.badlogic.gdx.physics.bullet.dynamics.btRigidBody, com.badlogic.gdx.physics.bullet.dynamics.btMultiBodyLinkCollider, com.badlogic.gdx.physics.bullet.softbody.btSoftBody, com.badlogic.gdx.physics.bullet.collision.btGhostObject
Imports
com.badlogic.gdx.physics.bullet.BulletBase, com.badlogic.gdx.physics.bullet.linearmath.*, com.badlogic.gdx.math.Vector3, .Matrix4

Nested and Inner Type Summary

Modifier and TypeClass and Description
public static class
public static class
public static class

Field Summary

Modifier and TypeField and Description
protected btCollisionShape
protected int
protected int
protected GdxCollisionObjectBridge
public static final LongMap<btCollisionObject>
instances

Provides direct access to the instances this wrapper managed.

private long
public Object
userData

User definable data, not used by Bullet itself.

protected int
Inherited from com.badlogic.gdx.physics.bullet.BulletBase:
classNamedestroyedswigCMemOwn

Constructor Summary

AccessConstructor and Description
protected
btCollisionObject(final String className, long cPtr, boolean cMemoryOwn)

public
btCollisionObject(long cPtr, boolean cMemoryOwn)

Construct a new btCollisionObject, normally you should not need this constructor it's intended for low-level usage.

public

Method Summary

Modifier and TypeMethod and Description
public void
activate(boolean forceActivation)

public void
public static void
addInstance(final btCollisionObject obj)

Add the instance to the managed instances.

public int
public boolean
public boolean
protected void
protected synchronized void
delete()

Overrides com.badlogic.gdx.physics.bullet.BulletBase.delete.

Deletes the bullet object this class encapsulates.

public void
dispose()

Overrides com.badlogic.gdx.physics.bullet.BulletBase.dispose.

Implements com.badlogic.gdx.utils.Disposable.dispose.

Releases all resources of this object.

protected void
finalize()

Overrides com.badlogic.gdx.physics.bullet.BulletBase.finalize.

Called by the garbage collector on an object when garbage collection determines that there are no more references to the object.

public void
forceActivationState(int newState)

public int
public Vector3
public void
public btBroadphaseProxy
public float
public float
public float
public int
public btCollisionShape
public int
public int
getContactCallbackFilter()

Returns: The filter (default to 0) that is used to match the flag of the other object for a contact callback to be triggered

public int
getContactCallbackFlag()

Returns: The flag (defaults to 1) used to filter contact callbacks with this object

public float
public float
public float
public static long
public boolean
public float
public float
public float
public static btCollisionObject
getInstance(final long swigCPtr)

Returns: The existing instance for the specified pointer, or null if the instance doesn't exist

public static btCollisionObject
getInstance(final long swigCPtr, boolean owner)

Returns: The existing instance for the specified pointer, or a newly created instance if the instance didn't exist

public int
public Vector3
public void
public Vector3
public void
public Matrix4
public void
public int
public float
public float
public float
public int
public int
public int
public long
public int
getUserValue()

Returns: A user definable value set using setUserValue(int), intended to quickly identify the collision object

public int
public Matrix4
public void
public boolean
hasAnisotropicFriction(int frictionMode)

public boolean
public boolean
private btCollisionShape
public long
private GdxCollisionObjectBridge
private void
public void
private void
public boolean
public boolean
public boolean
public boolean
public boolean
public void
operatorDelete(long ptr)

public void
operatorDelete(long arg0, long arg1)

public void
public void
operatorDeleteArray(long arg0, long arg1)

public long
operatorNew(long sizeInBytes)

public long
operatorNew(long arg0, long ptr)

public long
operatorNewArray(long sizeInBytes)

public long
operatorNewArray(long arg0, long ptr)

protected void
public void
public static void
removeInstance(final btCollisionObject obj)

Remove the instance to the managed instances.

protected void
reset(long cPtr, boolean cMemoryOwn)

Overrides com.badlogic.gdx.physics.bullet.BulletBase.reset.

public String
serialize(long dataBuffer, btSerializer serializer)

public void
public void
setActivationState(int newState)

public void
setAnisotropicFriction(Vector3 anisotropicFriction, int frictionMode)

public void
setAnisotropicFriction(Vector3 anisotropicFriction)

public void
public void
setCcdMotionThreshold(float ccdMotionThreshold)

public void
public void
setCollisionFlags(int flags)

public void
public void
public void
setContactCallbackFilter(int
The new filter that is used to match the flag of the other object for a contact callback to be triggered
filter
)

public void
setContactCallbackFlag(int
The new flag used to filter contact callbacks with this object
flag
)

public void
setContactProcessingThreshold(float contactProcessingThreshold)

public void
setContactStiffnessAndDamping(float stiffness, float damping)

public void
public void
setDeactivationTime(float time)

public void
setFriction(float frict)

public void
setHitFraction(float hitFraction)

public void
setIgnoreCollisionCheck(btCollisionObject co, boolean ignoreCollisionCheck)

public void
public void
public void
public void
setIslandTag(int tag)

public void
setRestitution(float rest)

public void
setRollingFriction(float frict)

public void
setSpinningFriction(float frict)

public void
setUserIndex(int index)

public void
setUserIndex2(int index)

public void
setUserPointer(long userPointer)

public void
setUserValue(int
A user definable value which allows you to quickly identify this collision object. Some frequently called methods rather return this value than the collision object itself to minimize JNI overhead.
value
)

public void
public void
Inherited from com.badlogic.gdx.physics.bullet.BulletBase:
destroyequalsgetCPointerhashCodehasOwnershipisDisposedisObtainedobtainreleasereleaseOwnershiptakeOwnershiptoString