Box2D.Collision.Shapes.b2Shape
Class b2Shape
Namespace: Box2D.Collision.Shapes
Assembly: Box2D.dll, box2d.iOS.dll
A shape is used for collision detection. You can create a shape however you like. Shapes used for simulation in b2World are created automatically when a b2Fixture is created. Shapes may encapsulate a one or more child shapes.
public abstract class b2Shape
Inheritance
Derived
b2ChainShape, b2CircleShape, b2EdgeShape, b2PolygonShape
Inherited Members
object.GetType(), object.MemberwiseClone(), object.ToString(), object.Equals(object?), object.Equals(object?, object?), object.ReferenceEquals(object?, object?), object.GetHashCode()
Constructors
b2Shape()
public b2Shape()
b2Shape(b2Shape)
public b2Shape(b2Shape copy)
Parameters
copy
b2Shape
b2Shape()
public b2Shape()
b2Shape(b2Shape)
public b2Shape(b2Shape copy)
Parameters
copy
b2Shape
b2Shape()
public b2Shape()
b2Shape(b2Shape)
public b2Shape(b2Shape copy)
Parameters
copy
b2Shape
b2Shape()
public b2Shape()
b2Shape(b2Shape)
public b2Shape(b2Shape copy)
Parameters
copy
b2Shape
b2Shape()
public b2Shape()
b2Shape(b2Shape)
public b2Shape(b2Shape copy)
Parameters
copy
b2Shape
b2Shape()
public b2Shape()
b2Shape(b2Shape)
public b2Shape(b2Shape copy)
Parameters
copy
b2Shape
b2Shape()
public b2Shape()
b2Shape(b2Shape)
public b2Shape(b2Shape copy)
Parameters
copy
b2Shape
b2Shape()
public b2Shape()
b2Shape(b2Shape)
public b2Shape(b2Shape copy)
Parameters
copy
b2Shape
b2Shape()
public b2Shape()
b2Shape(b2Shape)
public b2Shape(b2Shape copy)
Parameters
copy
b2Shape
b2Shape()
public b2Shape()
b2Shape(b2Shape)
public b2Shape(b2Shape copy)
Parameters
copy
b2Shape
b2Shape()
public b2Shape()
b2Shape(b2Shape)
public b2Shape(b2Shape copy)
Parameters
copy
b2Shape
b2Shape()
public b2Shape()
b2Shape(b2Shape)
public b2Shape(b2Shape copy)
Parameters
copy
b2Shape
Fields
Radius
public float Radius
Field Value
Radius
public float Radius
Field Value
Radius
public float Radius
Field Value
Radius
public float Radius
Field Value
Radius
public float Radius
Field Value
Radius
public float Radius
Field Value
Radius
public float Radius
Field Value
Radius
public float Radius
Field Value
Radius
public float Radius
Field Value
Radius
public float Radius
Field Value
Radius
public float Radius
Field Value
Radius
public float Radius
Field Value
ShapeType
public b2ShapeType ShapeType
Field Value
ShapeType
public b2ShapeType ShapeType
Field Value
ShapeType
public b2ShapeType ShapeType
Field Value
ShapeType
public b2ShapeType ShapeType
Field Value
ShapeType
public b2ShapeType ShapeType
Field Value
ShapeType
public b2ShapeType ShapeType
Field Value
ShapeType
public b2ShapeType ShapeType
Field Value
ShapeType
public b2ShapeType ShapeType
Field Value
ShapeType
public b2ShapeType ShapeType
Field Value
ShapeType
public b2ShapeType ShapeType
Field Value
ShapeType
public b2ShapeType ShapeType
Field Value
ShapeType
public b2ShapeType ShapeType
Field Value
Methods
Clone()
public abstract b2Shape Clone()
Returns
Clone()
public abstract b2Shape Clone()
Returns
Clone()
public abstract b2Shape Clone()
Returns
Clone()
public abstract b2Shape Clone()
Returns
Clone()
public abstract b2Shape Clone()
Returns
Clone()
public abstract b2Shape Clone()
Returns
Clone()
public abstract b2Shape Clone()
Returns
Clone()
public abstract b2Shape Clone()
Returns
Clone()
public abstract b2Shape Clone()
Returns
Clone()
public abstract b2Shape Clone()
Returns
Clone()
public abstract b2Shape Clone()
Returns
Clone()
public abstract b2Shape Clone()
Returns
ComputeAABB(out b2AABB, ref b2Transform, int)
public abstract void ComputeAABB(out b2AABB output, ref b2Transform xf, int childIndex)
Parameters
output
b2AABB
xf
b2Transform
childIndex
int
ComputeAABB(out b2AABB, ref b2Transform, int)
public abstract void ComputeAABB(out b2AABB output, ref b2Transform xf, int childIndex)
Parameters
output
b2AABB
xf
b2Transform
childIndex
int
ComputeAABB(out b2AABB, ref b2Transform, int)
public abstract void ComputeAABB(out b2AABB output, ref b2Transform xf, int childIndex)
Parameters
output
b2AABB
xf
b2Transform
childIndex
int
ComputeAABB(out b2AABB, ref b2Transform, int)
public abstract void ComputeAABB(out b2AABB output, ref b2Transform xf, int childIndex)
Parameters
output
b2AABB
xf
b2Transform
childIndex
int
ComputeAABB(out b2AABB, ref b2Transform, int)
public abstract void ComputeAABB(out b2AABB output, ref b2Transform xf, int childIndex)
Parameters
output
b2AABB
xf
b2Transform
childIndex
int
ComputeAABB(out b2AABB, ref b2Transform, int)
public abstract void ComputeAABB(out b2AABB output, ref b2Transform xf, int childIndex)
Parameters
output
b2AABB
xf
b2Transform
childIndex
int
ComputeAABB(out b2AABB, ref b2Transform, int)
public abstract void ComputeAABB(out b2AABB output, ref b2Transform xf, int childIndex)
Parameters
output
b2AABB
xf
b2Transform
childIndex
int
ComputeAABB(out b2AABB, ref b2Transform, int)
public abstract void ComputeAABB(out b2AABB output, ref b2Transform xf, int childIndex)
Parameters
output
b2AABB
xf
b2Transform
childIndex
int
ComputeAABB(out b2AABB, ref b2Transform, int)
public abstract void ComputeAABB(out b2AABB output, ref b2Transform xf, int childIndex)
Parameters
output
b2AABB
xf
b2Transform
childIndex
int
ComputeAABB(out b2AABB, ref b2Transform, int)
public abstract void ComputeAABB(out b2AABB output, ref b2Transform xf, int childIndex)
Parameters
output
b2AABB
xf
b2Transform
childIndex
int
ComputeAABB(out b2AABB, ref b2Transform, int)
public abstract void ComputeAABB(out b2AABB output, ref b2Transform xf, int childIndex)
Parameters
output
b2AABB
xf
b2Transform
childIndex
int
ComputeAABB(out b2AABB, ref b2Transform, int)
public abstract void ComputeAABB(out b2AABB output, ref b2Transform xf, int childIndex)
Parameters
output
b2AABB
xf
b2Transform
childIndex
int
ComputeMass(float)
public abstract b2MassData ComputeMass(float density)
Parameters
density
float
Returns
ComputeMass(float)
public abstract b2MassData ComputeMass(float density)
Parameters
density
float
Returns
ComputeMass(float)
public abstract b2MassData ComputeMass(float density)
Parameters
density
float
Returns
ComputeMass(float)
public abstract b2MassData ComputeMass(float density)
Parameters
density
float
Returns
ComputeMass(float)
public abstract b2MassData ComputeMass(float density)
Parameters
density
float
Returns
ComputeMass(float)
public abstract b2MassData ComputeMass(float density)
Parameters
density
float
Returns
ComputeMass(float)
public abstract b2MassData ComputeMass(float density)
Parameters
density
float
Returns
ComputeMass(float)
public abstract b2MassData ComputeMass(float density)
Parameters
density
float
Returns
ComputeMass(float)
public abstract b2MassData ComputeMass(float density)
Parameters
density
float
Returns
ComputeMass(float)
public abstract b2MassData ComputeMass(float density)
Parameters
density
float
Returns
ComputeMass(float)
public abstract b2MassData ComputeMass(float density)
Parameters
density
float
Returns
ComputeMass(float)
public abstract b2MassData ComputeMass(float density)
Parameters
density
float
Returns
GetChildCount()
public abstract int GetChildCount()
Returns
GetChildCount()
public abstract int GetChildCount()
Returns
GetChildCount()
public abstract int GetChildCount()
Returns
GetChildCount()
public abstract int GetChildCount()
Returns
GetChildCount()
public abstract int GetChildCount()
Returns
GetChildCount()
public abstract int GetChildCount()
Returns
GetChildCount()
public abstract int GetChildCount()
Returns
GetChildCount()
public abstract int GetChildCount()
Returns
GetChildCount()
public abstract int GetChildCount()
Returns
GetChildCount()
public abstract int GetChildCount()
Returns
GetChildCount()
public abstract int GetChildCount()
Returns
GetChildCount()
public abstract int GetChildCount()
Returns
GetShapeType()
public b2ShapeType GetShapeType()
Returns
GetShapeType()
public b2ShapeType GetShapeType()
Returns
GetShapeType()
public b2ShapeType GetShapeType()
Returns
GetShapeType()
public b2ShapeType GetShapeType()
Returns
GetShapeType()
public b2ShapeType GetShapeType()
Returns
GetShapeType()
public b2ShapeType GetShapeType()
Returns
GetShapeType()
public b2ShapeType GetShapeType()
Returns
GetShapeType()
public b2ShapeType GetShapeType()
Returns
GetShapeType()
public b2ShapeType GetShapeType()
Returns
GetShapeType()
public b2ShapeType GetShapeType()
Returns
GetShapeType()
public b2ShapeType GetShapeType()
Returns
GetShapeType()
public b2ShapeType GetShapeType()
Returns
RayCast(out b2RayCastOutput, b2RayCastInput, ref b2Transform, int)
public abstract bool RayCast(out b2RayCastOutput output, b2RayCastInput input, ref b2Transform transform, int childIndex)
Parameters
output
b2RayCastOutput
input
b2RayCastInput
transform
b2Transform
childIndex
int
Returns
RayCast(out b2RayCastOutput, b2RayCastInput, ref b2Transform, int)
public abstract bool RayCast(out b2RayCastOutput output, b2RayCastInput input, ref b2Transform transform, int childIndex)
Parameters
output
b2RayCastOutput
input
b2RayCastInput
transform
b2Transform
childIndex
int
Returns
RayCast(out b2RayCastOutput, b2RayCastInput, ref b2Transform, int)
public abstract bool RayCast(out b2RayCastOutput output, b2RayCastInput input, ref b2Transform transform, int childIndex)
Parameters
output
b2RayCastOutput
input
b2RayCastInput
transform
b2Transform
childIndex
int
Returns
RayCast(out b2RayCastOutput, b2RayCastInput, ref b2Transform, int)
public abstract bool RayCast(out b2RayCastOutput output, b2RayCastInput input, ref b2Transform transform, int childIndex)
Parameters
output
b2RayCastOutput
input
b2RayCastInput
transform
b2Transform
childIndex
int
Returns
RayCast(out b2RayCastOutput, b2RayCastInput, ref b2Transform, int)
public abstract bool RayCast(out b2RayCastOutput output, b2RayCastInput input, ref b2Transform transform, int childIndex)
Parameters
output
b2RayCastOutput
input
b2RayCastInput
transform
b2Transform
childIndex
int
Returns
RayCast(out b2RayCastOutput, b2RayCastInput, ref b2Transform, int)
public abstract bool RayCast(out b2RayCastOutput output, b2RayCastInput input, ref b2Transform transform, int childIndex)
Parameters
output
b2RayCastOutput
input
b2RayCastInput
transform
b2Transform
childIndex
int
Returns
RayCast(out b2RayCastOutput, b2RayCastInput, ref b2Transform, int)
public abstract bool RayCast(out b2RayCastOutput output, b2RayCastInput input, ref b2Transform transform, int childIndex)
Parameters
output
b2RayCastOutput
input
b2RayCastInput
transform
b2Transform
childIndex
int
Returns
RayCast(out b2RayCastOutput, b2RayCastInput, ref b2Transform, int)
public abstract bool RayCast(out b2RayCastOutput output, b2RayCastInput input, ref b2Transform transform, int childIndex)
Parameters
output
b2RayCastOutput
input
b2RayCastInput
transform
b2Transform
childIndex
int
Returns
RayCast(out b2RayCastOutput, b2RayCastInput, ref b2Transform, int)
public abstract bool RayCast(out b2RayCastOutput output, b2RayCastInput input, ref b2Transform transform, int childIndex)
Parameters
output
b2RayCastOutput
input
b2RayCastInput
transform
b2Transform
childIndex
int
Returns
RayCast(out b2RayCastOutput, b2RayCastInput, ref b2Transform, int)
public abstract bool RayCast(out b2RayCastOutput output, b2RayCastInput input, ref b2Transform transform, int childIndex)
Parameters
output
b2RayCastOutput
input
b2RayCastInput
transform
b2Transform
childIndex
int
Returns
RayCast(out b2RayCastOutput, b2RayCastInput, ref b2Transform, int)
public abstract bool RayCast(out b2RayCastOutput output, b2RayCastInput input, ref b2Transform transform, int childIndex)
Parameters
output
b2RayCastOutput
input
b2RayCastInput
transform
b2Transform
childIndex
int
Returns
RayCast(out b2RayCastOutput, b2RayCastInput, ref b2Transform, int)
public abstract bool RayCast(out b2RayCastOutput output, b2RayCastInput input, ref b2Transform transform, int childIndex)
Parameters
output
b2RayCastOutput
input
b2RayCastInput
transform
b2Transform
childIndex
int
Returns
TestPoint(ref b2Transform, b2Vec2)
public abstract bool TestPoint(ref b2Transform xf, b2Vec2 p)
Parameters
xf
b2Transform
p
b2Vec2
Returns
TestPoint(ref b2Transform, b2Vec2)
public abstract bool TestPoint(ref b2Transform xf, b2Vec2 p)
Parameters
xf
b2Transform
p
b2Vec2
Returns
TestPoint(ref b2Transform, b2Vec2)
public abstract bool TestPoint(ref b2Transform xf, b2Vec2 p)
Parameters
xf
b2Transform
p
b2Vec2
Returns
TestPoint(ref b2Transform, b2Vec2)
public abstract bool TestPoint(ref b2Transform xf, b2Vec2 p)
Parameters
xf
b2Transform
p
b2Vec2
Returns
TestPoint(ref b2Transform, b2Vec2)
public abstract bool TestPoint(ref b2Transform xf, b2Vec2 p)
Parameters
xf
b2Transform
p
b2Vec2
Returns
TestPoint(ref b2Transform, b2Vec2)
public abstract bool TestPoint(ref b2Transform xf, b2Vec2 p)
Parameters
xf
b2Transform
p
b2Vec2
Returns
TestPoint(ref b2Transform, b2Vec2)
public abstract bool TestPoint(ref b2Transform xf, b2Vec2 p)
Parameters
xf
b2Transform
p
b2Vec2
Returns
TestPoint(ref b2Transform, b2Vec2)
public abstract bool TestPoint(ref b2Transform xf, b2Vec2 p)
Parameters
xf
b2Transform
p
b2Vec2
Returns
TestPoint(ref b2Transform, b2Vec2)
public abstract bool TestPoint(ref b2Transform xf, b2Vec2 p)
Parameters
xf
b2Transform
p
b2Vec2
Returns
TestPoint(ref b2Transform, b2Vec2)
public abstract bool TestPoint(ref b2Transform xf, b2Vec2 p)
Parameters
xf
b2Transform
p
b2Vec2
Returns
TestPoint(ref b2Transform, b2Vec2)
public abstract bool TestPoint(ref b2Transform xf, b2Vec2 p)
Parameters
xf
b2Transform
p
b2Vec2
Returns
TestPoint(ref b2Transform, b2Vec2)
public abstract bool TestPoint(ref b2Transform xf, b2Vec2 p)
Parameters
xf
b2Transform
p
b2Vec2