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

public Class btIDebugDraw

extends BulletBase
Class Inheritance
Known Direct Subclasses
com.badlogic.gdx.physics.bullet.DebugDrawer
Imports
com.badlogic.gdx.physics.bullet.BulletBase, com.badlogic.gdx.math.Vector3, .Matrix4

Nested and Inner Type Summary

Modifier and TypeClass and Description
public static class
public static class

Field Summary

Modifier and TypeField and Description
private long
Inherited from com.badlogic.gdx.physics.bullet.BulletBase:
classNamedestroyedswigCMemOwn

Constructor Summary

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

public
btIDebugDraw(long cPtr, boolean cMemoryOwn)

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

public

Method Summary

Modifier and TypeMethod and Description
public void
protected synchronized void
delete()

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

Deletes the bullet object this class encapsulates.

public void
draw3dText(Vector3 location, String textString)

public void
drawAabb(Vector3 from, Vector3 to, Vector3 color)

public void
drawArc(Vector3 center, Vector3 normal, Vector3 axis, float radiusA, float radiusB, float minAngle, float maxAngle, Vector3 color, boolean drawSect, float stepDegrees)

public void
drawArc(Vector3 center, Vector3 normal, Vector3 axis, float radiusA, float radiusB, float minAngle, float maxAngle, Vector3 color, boolean drawSect)

public void
drawBox(Vector3 bbMin, Vector3 bbMax, Vector3 color)

public void
drawBox(Vector3 bbMin, Vector3 bbMax, Matrix4 trans, Vector3 color)

public void
drawCapsule(float radius, float halfHeight, int upAxis, Matrix4 transform, Vector3 color)

public void
drawCone(float radius, float height, int upAxis, Matrix4 transform, Vector3 color)

public void
drawContactPoint(Vector3 PointOnB, Vector3 normalOnB, float distance, int lifeTime, Vector3 color)

public void
drawCylinder(float radius, float halfHeight, int upAxis, Matrix4 transform, Vector3 color)

public void
drawLine(Vector3 from, Vector3 to, Vector3 color)

public void
drawLine(Vector3 from, Vector3 to, Vector3 fromColor, Vector3 toColor)

public void
drawPlane(Vector3 planeNormal, float planeConst, Matrix4 transform, Vector3 color)

public void
drawSphere(float radius, Matrix4 transform, Vector3 color)

public void
drawSphere(Vector3 p, float radius, Vector3 color)

public void
drawSpherePatch(Vector3 center, Vector3 up, Vector3 axis, float radius, float minTh, float maxTh, float minPs, float maxPs, Vector3 color, float stepDegrees, boolean drawCenter)

public void
drawSpherePatch(Vector3 center, Vector3 up, Vector3 axis, float radius, float minTh, float maxTh, float minPs, float maxPs, Vector3 color, float stepDegrees)

public void
drawSpherePatch(Vector3 center, Vector3 up, Vector3 axis, float radius, float minTh, float maxTh, float minPs, float maxPs, Vector3 color)

public void
drawTransform(Matrix4 transform, float orthoLen)

public void
drawTriangle(Vector3 v0, Vector3 v1, Vector3 v2, Vector3 arg3, Vector3 arg4, Vector3 arg5, Vector3 color, float alpha)

public void
drawTriangle(Vector3 v0, Vector3 v1, Vector3 v2, Vector3 color, float arg4)

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
public static long
public int
public btIDebugDraw.DefaultColors
public void
reportErrorWarning(String warningString)

protected void
reset(long cPtr, boolean cMemoryOwn)

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

public void
setDebugMode(int debugMode)

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

Field Detail

swigCPtrback to summary
private long swigCPtr

Constructor Detail

btIDebugDrawback to summary
protected btIDebugDraw(final String className, long cPtr, boolean cMemoryOwn)
btIDebugDrawback to summary
public btIDebugDraw(long cPtr, boolean cMemoryOwn)

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

btIDebugDrawback to summary
public btIDebugDraw()

Method Detail

clearLinesback to summary
public void clearLines()
deleteback to summary
protected synchronized void delete()

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

Doc from com.badlogic.gdx.physics.bullet.BulletBase.delete.

Deletes the bullet object this class encapsulates. Do not call directly, instead use the dispose() method.

Annotations
@Override
draw3dTextback to summary
public void draw3dText(Vector3 location, String textString)
drawAabbback to summary
public void drawAabb(Vector3 from, Vector3 to, Vector3 color)
drawArcback to summary
public void drawArc(Vector3 center, Vector3 normal, Vector3 axis, float radiusA, float radiusB, float minAngle, float maxAngle, Vector3 color, boolean drawSect, float stepDegrees)
drawArcback to summary
public void drawArc(Vector3 center, Vector3 normal, Vector3 axis, float radiusA, float radiusB, float minAngle, float maxAngle, Vector3 color, boolean drawSect)
drawBoxback to summary
public void drawBox(Vector3 bbMin, Vector3 bbMax, Vector3 color)
drawBoxback to summary
public void drawBox(Vector3 bbMin, Vector3 bbMax, Matrix4 trans, Vector3 color)
drawCapsuleback to summary
public void drawCapsule(float radius, float halfHeight, int upAxis, Matrix4 transform, Vector3 color)
drawConeback to summary
public void drawCone(float radius, float height, int upAxis, Matrix4 transform, Vector3 color)
drawContactPointback to summary
public void drawContactPoint(Vector3 PointOnB, Vector3 normalOnB, float distance, int lifeTime, Vector3 color)
drawCylinderback to summary
public void drawCylinder(float radius, float halfHeight, int upAxis, Matrix4 transform, Vector3 color)
drawLineback to summary
public void drawLine(Vector3 from, Vector3 to, Vector3 color)
drawLineback to summary
public void drawLine(Vector3 from, Vector3 to, Vector3 fromColor, Vector3 toColor)
drawPlaneback to summary
public void drawPlane(Vector3 planeNormal, float planeConst, Matrix4 transform, Vector3 color)
drawSphereback to summary
public void drawSphere(float radius, Matrix4 transform, Vector3 color)
drawSphereback to summary
public void drawSphere(Vector3 p, float radius, Vector3 color)
drawSpherePatchback to summary
public void drawSpherePatch(Vector3 center, Vector3 up, Vector3 axis, float radius, float minTh, float maxTh, float minPs, float maxPs, Vector3 color, float stepDegrees, boolean drawCenter)
drawSpherePatchback to summary
public void drawSpherePatch(Vector3 center, Vector3 up, Vector3 axis, float radius, float minTh, float maxTh, float minPs, float maxPs, Vector3 color, float stepDegrees)
drawSpherePatchback to summary
public void drawSpherePatch(Vector3 center, Vector3 up, Vector3 axis, float radius, float minTh, float maxTh, float minPs, float maxPs, Vector3 color)
drawTransformback to summary
public void drawTransform(Matrix4 transform, float orthoLen)
drawTriangleback to summary
public void drawTriangle(Vector3 v0, Vector3 v1, Vector3 v2, Vector3 arg3, Vector3 arg4, Vector3 arg5, Vector3 color, float alpha)
drawTriangleback to summary
public void drawTriangle(Vector3 v0, Vector3 v1, Vector3 v2, Vector3 color, float arg4)
finalizeback to summary
protected void finalize() throws Throwable

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

Doc from java.lang.Object.finalize.

Called by the garbage collector on an object when garbage collection determines that there are no more references to the object. A subclass overrides the finalize method to dispose of system resources or to perform other cleanup.

When running in a Java virtual machine in which finalization has been disabled or removed, the garbage collector will never call finalize(). In a Java virtual machine in which finalization is enabled, the garbage collector might call finalize only after an indefinite delay.

The general contract of finalize is that it is invoked if and when the Java virtual machine has determined that there is no longer any means by which this object can be accessed by any thread that has not yet died, except as a result of an action taken by the finalization of some other object or class which is ready to be finalized. The finalize method may take any action, including making this object available again to other threads; the usual purpose of finalize, however, is to perform cleanup actions before the object is irrevocably discarded. For example, the finalize method for an object that represents an input/output connection might perform explicit I/O transactions to break the connection before the object is permanently discarded.

The finalize method of class Object performs no special action; it simply returns normally. Subclasses of Object may override this definition.

The Java programming language does not guarantee which thread will invoke the finalize method for any given object. It is guaranteed, however, that the thread that invokes finalize will not be holding any user-visible synchronization locks when finalize is invoked. If an uncaught exception is thrown by the finalize method, the exception is ignored and finalization of that object terminates.

After the finalize method has been invoked for an object, no further action is taken until the Java virtual machine has again determined that there is no longer any means by which this object can be accessed by any thread that has not yet died, including possible actions by other objects or classes which are ready to be finalized, at which point the object may be discarded.

The finalize method is never invoked more than once by a Java virtual machine for any given object.

Any exception thrown by the finalize method causes the finalization of this object to be halted, but is otherwise ignored.

Annotations
@Override
Exceptions
Throwable:
the Exception raised by this method
flushLinesback to summary
public void flushLines()
getCPtrback to summary
public static long getCPtr(btIDebugDraw obj)
getDebugModeback to summary
public int getDebugMode()
getDefaultColorsback to summary
public btIDebugDraw.DefaultColors getDefaultColors()
reportErrorWarningback to summary
public void reportErrorWarning(String warningString)
resetback to summary
protected void reset(long cPtr, boolean cMemoryOwn)

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

Annotations
@Override
setDebugModeback to summary
public void setDebugMode(int debugMode)
setDefaultColorsback to summary
public void setDefaultColors(btIDebugDraw.DefaultColors arg0)
swigDirectorDisconnectback to summary
protected void swigDirectorDisconnect()
swigReleaseOwnershipback to summary
public void swigReleaseOwnership()
swigTakeOwnershipback to summary
public void swigTakeOwnership()
com.badlogic.gdx.physics.bullet.linearmath back to summary

public final Class btIDebugDraw.DebugDrawModes

extends Object
Class Inheritance
  • java.lang.Object
  • com.badlogic.gdx.physics.bullet.linearmath.btIDebugDraw.DebugDrawModes

Field Summary

Modifier and TypeField and Description
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int

Constructor Summary

AccessConstructor and Description
public

Method Summary

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

DBG_DisableBulletLCPback to summary
public static final int DBG_DisableBulletLCP
DBG_DrawAabbback to summary
public static final int DBG_DrawAabb
DBG_DrawConstraintLimitsback to summary
public static final int DBG_DrawConstraintLimits
DBG_DrawConstraintsback to summary
public static final int DBG_DrawConstraints
DBG_DrawContactPointsback to summary
public static final int DBG_DrawContactPoints
DBG_DrawFeaturesTextback to summary
public static final int DBG_DrawFeaturesText
DBG_DrawFramesback to summary
public static final int DBG_DrawFrames
DBG_DrawNormalsback to summary
public static final int DBG_DrawNormals
DBG_DrawTextback to summary
public static final int DBG_DrawText
DBG_DrawWireframeback to summary
public static final int DBG_DrawWireframe
DBG_EnableCCDback to summary
public static final int DBG_EnableCCD
DBG_EnableSatComparisonback to summary
public static final int DBG_EnableSatComparison
DBG_FastWireframeback to summary
public static final int DBG_FastWireframe
DBG_MAX_DEBUG_DRAW_MODEback to summary
public static final int DBG_MAX_DEBUG_DRAW_MODE
DBG_NoDeactivationback to summary
public static final int DBG_NoDeactivation
DBG_NoDebugback to summary
public static final int DBG_NoDebug
DBG_NoHelpTextback to summary
public static final int DBG_NoHelpText
DBG_ProfileTimingsback to summary
public static final int DBG_ProfileTimings

Constructor Detail

DebugDrawModesback to summary
public DebugDrawModes()
com.badlogic.gdx.physics.bullet.linearmath back to summary

public Class btIDebugDraw.DefaultColors

extends BulletBase
Class Inheritance

Field Summary

Modifier and TypeField and Description
private long
Inherited from com.badlogic.gdx.physics.bullet.BulletBase:
classNamedestroyedswigCMemOwn

Constructor Summary

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

public
DefaultColors(long cPtr, boolean cMemoryOwn)

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

public

Method Summary

Modifier and TypeMethod and Description
protected synchronized void
delete()

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

Deletes the bullet object this class encapsulates.

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 btVector3
public btVector3
public btVector3
public static long
public btVector3
public btVector3
public btVector3
public btVector3
protected void
reset(long cPtr, boolean cMemoryOwn)

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

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

Field Detail

swigCPtrback to summary
private long swigCPtr

Constructor Detail

DefaultColorsback to summary
protected DefaultColors(final String className, long cPtr, boolean cMemoryOwn)
DefaultColorsback to summary
public DefaultColors(long cPtr, boolean cMemoryOwn)

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

DefaultColorsback to summary
public DefaultColors()

Method Detail

deleteback to summary
protected synchronized void delete()

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

Doc from com.badlogic.gdx.physics.bullet.BulletBase.delete.

Deletes the bullet object this class encapsulates. Do not call directly, instead use the dispose() method.

Annotations
@Override
finalizeback to summary
protected void finalize() throws Throwable

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

Doc from java.lang.Object.finalize.

Called by the garbage collector on an object when garbage collection determines that there are no more references to the object. A subclass overrides the finalize method to dispose of system resources or to perform other cleanup.

When running in a Java virtual machine in which finalization has been disabled or removed, the garbage collector will never call finalize(). In a Java virtual machine in which finalization is enabled, the garbage collector might call finalize only after an indefinite delay.

The general contract of finalize is that it is invoked if and when the Java virtual machine has determined that there is no longer any means by which this object can be accessed by any thread that has not yet died, except as a result of an action taken by the finalization of some other object or class which is ready to be finalized. The finalize method may take any action, including making this object available again to other threads; the usual purpose of finalize, however, is to perform cleanup actions before the object is irrevocably discarded. For example, the finalize method for an object that represents an input/output connection might perform explicit I/O transactions to break the connection before the object is permanently discarded.

The finalize method of class Object performs no special action; it simply returns normally. Subclasses of Object may override this definition.

The Java programming language does not guarantee which thread will invoke the finalize method for any given object. It is guaranteed, however, that the thread that invokes finalize will not be holding any user-visible synchronization locks when finalize is invoked. If an uncaught exception is thrown by the finalize method, the exception is ignored and finalization of that object terminates.

After the finalize method has been invoked for an object, no further action is taken until the Java virtual machine has again determined that there is no longer any means by which this object can be accessed by any thread that has not yet died, including possible actions by other objects or classes which are ready to be finalized, at which point the object may be discarded.

The finalize method is never invoked more than once by a Java virtual machine for any given object.

Any exception thrown by the finalize method causes the finalization of this object to be halted, but is otherwise ignored.

Annotations
@Override
Exceptions
Throwable:
the Exception raised by this method
getAabbback to summary
public btVector3 getAabb()
getActiveObjectback to summary
public btVector3 getActiveObject()
getContactPointback to summary
public btVector3 getContactPoint()
getCPtrback to summary
public static long getCPtr(btIDebugDraw.DefaultColors obj)
getDeactivatedObjectback to summary
public btVector3 getDeactivatedObject()
getDisabledDeactivationObjectback to summary
public btVector3 getDisabledDeactivationObject()
getDisabledSimulationObjectback to summary
public btVector3 getDisabledSimulationObject()
getWantsDeactivationObjectback to summary
public btVector3 getWantsDeactivationObject()
resetback to summary
protected void reset(long cPtr, boolean cMemoryOwn)

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

Annotations
@Override
setAabbback to summary
public void setAabb(btVector3 value)
setActiveObjectback to summary
public void setActiveObject(btVector3 value)
setContactPointback to summary
public void setContactPoint(btVector3 value)
setDeactivatedObjectback to summary
public void setDeactivatedObject(btVector3 value)
setDisabledDeactivationObjectback to summary
public void setDisabledDeactivationObject(btVector3 value)
setDisabledSimulationObjectback to summary
public void setDisabledSimulationObject(btVector3 value)
setWantsDeactivationObjectback to summary
public void setWantsDeactivationObject(btVector3 value)