|
||||||||||
PREV NEXT | FRAMES NO FRAMES |
Packages that use Shape | |
---|---|
org.jbox2d.collision | This package contains the broad and narrow phase collision algorithms. |
org.jbox2d.dynamics | This package handles non-collision aspects of simulation. |
org.jbox2d.dynamics.contacts | This package performs contact handling, and is essentially internal to JBox2d. |
org.jbox2d.testbed | The JBox2d 2.0 testbed, implemented using Processing. |
Uses of Shape in org.jbox2d.collision |
---|
Subclasses of Shape in org.jbox2d.collision | |
---|---|
class |
CircleShape
A circle shape. |
class |
PolygonShape
A convex polygon shape. |
Fields in org.jbox2d.collision declared as Shape | |
---|---|
Shape |
Shape.m_next
|
Methods in org.jbox2d.collision that return Shape | |
---|---|
static Shape |
Shape.create(ShapeDef def)
Internal |
Shape |
Shape.getNext()
Get the next shape in the parent body's shape list. |
Methods in org.jbox2d.collision with parameters of type Shape | |
---|---|
static void |
Shape.destroy(Shape s)
Internal |
static float |
Distance.distance(Vec2 x1,
Vec2 x2,
Shape shape1,
XForm xf1,
Shape shape2,
XForm xf2)
Find the closest distance between shapes shape1 and shape2, and load the closest points into x1 and x2. |
static float |
TOI.timeOfImpact(Shape shape1,
Sweep sweep1,
Shape shape2,
Sweep sweep2)
Compute the time when two shapes begin to touch or touch at a closer distance. |
Uses of Shape in org.jbox2d.dynamics |
---|
Fields in org.jbox2d.dynamics declared as Shape | |
---|---|
Shape |
Body.m_shapeList
|
Methods in org.jbox2d.dynamics that return Shape | |
---|---|
Shape |
Body.createShape(ShapeDef def)
Creates a shape and attach it to this body. |
Shape |
Body.getShapeList()
Get the linked list of all shapes attached to this body. |
Shape[] |
World.query(AABB aabb,
int maxCount)
Query the world for all shapes that potentially overlap the provided AABB up to max count. |
Methods in org.jbox2d.dynamics with parameters of type Shape | |
---|---|
void |
Body.destroyShape(Shape s)
Destroy a shape. |
void |
World.drawShape(Shape shape,
XForm xf,
Color3f color,
boolean core)
For internal use |
void |
World.refilter(Shape shape)
Re-filter a shape. |
void |
DestructionListener.sayGoodbye(Shape shape)
Called when any shape is about to be destroyed due to the destruction of its parent body. |
boolean |
DefaultContactFilter.shouldCollide(Shape shape1,
Shape shape2)
Return true if contact calculations should be performed between these two shapes. |
boolean |
ContactFilter.shouldCollide(Shape shape1,
Shape shape2)
Return true if contact calculations should be performed between these two shapes. |
Uses of Shape in org.jbox2d.dynamics.contacts |
---|
Fields in org.jbox2d.dynamics.contacts declared as Shape | |
---|---|
Shape |
Contact.m_shape1
|
Shape |
Contact.m_shape2
|
Shape |
ContactResult.shape1
The first shape |
Shape |
ContactPoint.shape1
The first shape |
Shape |
ContactResult.shape2
The second shape |
Shape |
ContactPoint.shape2
The second shape |
Methods in org.jbox2d.dynamics.contacts that return Shape | |
---|---|
Shape |
Contact.getShape1()
|
Shape |
Contact.getShape2()
|
Methods in org.jbox2d.dynamics.contacts with parameters of type Shape | |
---|---|
Contact |
PolyContact.create(Shape shape1,
Shape shape2)
|
Contact |
ContactCreateFcn.create(Shape s1,
Shape s2)
|
Contact |
CircleContact.create(Shape shape1,
Shape shape2)
|
static Contact |
Contact.createContact(Shape shape1,
Shape shape2)
|
Constructors in org.jbox2d.dynamics.contacts with parameters of type Shape | |
---|---|
CircleContact(Shape shape1,
Shape shape2)
|
|
Contact(Shape s1,
Shape s2)
|
|
PolyContact(Shape s1,
Shape s2)
|
Uses of Shape in org.jbox2d.testbed |
---|
Fields in org.jbox2d.testbed declared as Shape | |
---|---|
Shape |
ExampleContactPoint.shape1
|
Shape |
ExampleContactPoint.shape2
|
|
||||||||||
PREV NEXT | FRAMES NO FRAMES |