Skip to main content

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

objectb2Shape

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

float

Radius

public float Radius

Field Value

float

Radius

public float Radius

Field Value

float

Radius

public float Radius

Field Value

float

Radius

public float Radius

Field Value

float

Radius

public float Radius

Field Value

float

Radius

public float Radius

Field Value

float

Radius

public float Radius

Field Value

float

Radius

public float Radius

Field Value

float

Radius

public float Radius

Field Value

float

Radius

public float Radius

Field Value

float

Radius

public float Radius

Field Value

float

ShapeType

public b2ShapeType ShapeType

Field Value

b2ShapeType

ShapeType

public b2ShapeType ShapeType

Field Value

b2ShapeType

ShapeType

public b2ShapeType ShapeType

Field Value

b2ShapeType

ShapeType

public b2ShapeType ShapeType

Field Value

b2ShapeType

ShapeType

public b2ShapeType ShapeType

Field Value

b2ShapeType

ShapeType

public b2ShapeType ShapeType

Field Value

b2ShapeType

ShapeType

public b2ShapeType ShapeType

Field Value

b2ShapeType

ShapeType

public b2ShapeType ShapeType

Field Value

b2ShapeType

ShapeType

public b2ShapeType ShapeType

Field Value

b2ShapeType

ShapeType

public b2ShapeType ShapeType

Field Value

b2ShapeType

ShapeType

public b2ShapeType ShapeType

Field Value

b2ShapeType

ShapeType

public b2ShapeType ShapeType

Field Value

b2ShapeType

Methods

Clone()

public abstract b2Shape Clone()

Returns

b2Shape

Clone()

public abstract b2Shape Clone()

Returns

b2Shape

Clone()

public abstract b2Shape Clone()

Returns

b2Shape

Clone()

public abstract b2Shape Clone()

Returns

b2Shape

Clone()

public abstract b2Shape Clone()

Returns

b2Shape

Clone()

public abstract b2Shape Clone()

Returns

b2Shape

Clone()

public abstract b2Shape Clone()

Returns

b2Shape

Clone()

public abstract b2Shape Clone()

Returns

b2Shape

Clone()

public abstract b2Shape Clone()

Returns

b2Shape

Clone()

public abstract b2Shape Clone()

Returns

b2Shape

Clone()

public abstract b2Shape Clone()

Returns

b2Shape

Clone()

public abstract b2Shape Clone()

Returns

b2Shape

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

b2MassData

ComputeMass(float)

public abstract b2MassData ComputeMass(float density)

Parameters

density float

Returns

b2MassData

ComputeMass(float)

public abstract b2MassData ComputeMass(float density)

Parameters

density float

Returns

b2MassData

ComputeMass(float)

public abstract b2MassData ComputeMass(float density)

Parameters

density float

Returns

b2MassData

ComputeMass(float)

public abstract b2MassData ComputeMass(float density)

Parameters

density float

Returns

b2MassData

ComputeMass(float)

public abstract b2MassData ComputeMass(float density)

Parameters

density float

Returns

b2MassData

ComputeMass(float)

public abstract b2MassData ComputeMass(float density)

Parameters

density float

Returns

b2MassData

ComputeMass(float)

public abstract b2MassData ComputeMass(float density)

Parameters

density float

Returns

b2MassData

ComputeMass(float)

public abstract b2MassData ComputeMass(float density)

Parameters

density float

Returns

b2MassData

ComputeMass(float)

public abstract b2MassData ComputeMass(float density)

Parameters

density float

Returns

b2MassData

ComputeMass(float)

public abstract b2MassData ComputeMass(float density)

Parameters

density float

Returns

b2MassData

ComputeMass(float)

public abstract b2MassData ComputeMass(float density)

Parameters

density float

Returns

b2MassData

GetChildCount()

public abstract int GetChildCount()

Returns

int

GetChildCount()

public abstract int GetChildCount()

Returns

int

GetChildCount()

public abstract int GetChildCount()

Returns

int

GetChildCount()

public abstract int GetChildCount()

Returns

int

GetChildCount()

public abstract int GetChildCount()

Returns

int

GetChildCount()

public abstract int GetChildCount()

Returns

int

GetChildCount()

public abstract int GetChildCount()

Returns

int

GetChildCount()

public abstract int GetChildCount()

Returns

int

GetChildCount()

public abstract int GetChildCount()

Returns

int

GetChildCount()

public abstract int GetChildCount()

Returns

int

GetChildCount()

public abstract int GetChildCount()

Returns

int

GetChildCount()

public abstract int GetChildCount()

Returns

int

GetShapeType()

public b2ShapeType GetShapeType()

Returns

b2ShapeType

GetShapeType()

public b2ShapeType GetShapeType()

Returns

b2ShapeType

GetShapeType()

public b2ShapeType GetShapeType()

Returns

b2ShapeType

GetShapeType()

public b2ShapeType GetShapeType()

Returns

b2ShapeType

GetShapeType()

public b2ShapeType GetShapeType()

Returns

b2ShapeType

GetShapeType()

public b2ShapeType GetShapeType()

Returns

b2ShapeType

GetShapeType()

public b2ShapeType GetShapeType()

Returns

b2ShapeType

GetShapeType()

public b2ShapeType GetShapeType()

Returns

b2ShapeType

GetShapeType()

public b2ShapeType GetShapeType()

Returns

b2ShapeType

GetShapeType()

public b2ShapeType GetShapeType()

Returns

b2ShapeType

GetShapeType()

public b2ShapeType GetShapeType()

Returns

b2ShapeType

GetShapeType()

public b2ShapeType GetShapeType()

Returns

b2ShapeType

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

bool

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

bool

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

bool

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

bool

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

bool

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

bool

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

bool

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

bool

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

bool

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

bool

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

bool

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

bool

TestPoint(ref b2Transform, b2Vec2)

public abstract bool TestPoint(ref b2Transform xf, b2Vec2 p)

Parameters

xf b2Transform

p b2Vec2

Returns

bool

TestPoint(ref b2Transform, b2Vec2)

public abstract bool TestPoint(ref b2Transform xf, b2Vec2 p)

Parameters

xf b2Transform

p b2Vec2

Returns

bool

TestPoint(ref b2Transform, b2Vec2)

public abstract bool TestPoint(ref b2Transform xf, b2Vec2 p)

Parameters

xf b2Transform

p b2Vec2

Returns

bool

TestPoint(ref b2Transform, b2Vec2)

public abstract bool TestPoint(ref b2Transform xf, b2Vec2 p)

Parameters

xf b2Transform

p b2Vec2

Returns

bool

TestPoint(ref b2Transform, b2Vec2)

public abstract bool TestPoint(ref b2Transform xf, b2Vec2 p)

Parameters

xf b2Transform

p b2Vec2

Returns

bool

TestPoint(ref b2Transform, b2Vec2)

public abstract bool TestPoint(ref b2Transform xf, b2Vec2 p)

Parameters

xf b2Transform

p b2Vec2

Returns

bool

TestPoint(ref b2Transform, b2Vec2)

public abstract bool TestPoint(ref b2Transform xf, b2Vec2 p)

Parameters

xf b2Transform

p b2Vec2

Returns

bool

TestPoint(ref b2Transform, b2Vec2)

public abstract bool TestPoint(ref b2Transform xf, b2Vec2 p)

Parameters

xf b2Transform

p b2Vec2

Returns

bool

TestPoint(ref b2Transform, b2Vec2)

public abstract bool TestPoint(ref b2Transform xf, b2Vec2 p)

Parameters

xf b2Transform

p b2Vec2

Returns

bool

TestPoint(ref b2Transform, b2Vec2)

public abstract bool TestPoint(ref b2Transform xf, b2Vec2 p)

Parameters

xf b2Transform

p b2Vec2

Returns

bool

TestPoint(ref b2Transform, b2Vec2)

public abstract bool TestPoint(ref b2Transform xf, b2Vec2 p)

Parameters

xf b2Transform

p b2Vec2

Returns

bool

TestPoint(ref b2Transform, b2Vec2)

public abstract bool TestPoint(ref b2Transform xf, b2Vec2 p)

Parameters

xf b2Transform

p b2Vec2

Returns

bool

  • Constructors
    • b2Shape()
    • b2Shape(b2Shape)
    • b2Shape()
    • b2Shape(b2Shape)
    • b2Shape()
    • b2Shape(b2Shape)
    • b2Shape()
    • b2Shape(b2Shape)
    • b2Shape()
    • b2Shape(b2Shape)
    • b2Shape()
    • b2Shape(b2Shape)
    • b2Shape()
    • b2Shape(b2Shape)
    • b2Shape()
    • b2Shape(b2Shape)
    • b2Shape()
    • b2Shape(b2Shape)
    • b2Shape()
    • b2Shape(b2Shape)
    • b2Shape()
    • b2Shape(b2Shape)
    • b2Shape()
    • b2Shape(b2Shape)
  • Fields
    • Radius
    • Radius
    • Radius
    • Radius
    • Radius
    • Radius
    • Radius
    • Radius
    • Radius
    • Radius
    • Radius
    • Radius
    • ShapeType
    • ShapeType
    • ShapeType
    • ShapeType
    • ShapeType
    • ShapeType
    • ShapeType
    • ShapeType
    • ShapeType
    • ShapeType
    • ShapeType
    • ShapeType
  • Methods
    • Clone()
    • Clone()
    • Clone()
    • Clone()
    • Clone()
    • Clone()
    • Clone()
    • Clone()
    • Clone()
    • Clone()
    • Clone()
    • Clone()
    • ComputeAABB(out b2AABB, ref b2Transform, int)
    • ComputeAABB(out b2AABB, ref b2Transform, int)
    • ComputeAABB(out b2AABB, ref b2Transform, int)
    • ComputeAABB(out b2AABB, ref b2Transform, int)
    • ComputeAABB(out b2AABB, ref b2Transform, int)
    • ComputeAABB(out b2AABB, ref b2Transform, int)
    • ComputeAABB(out b2AABB, ref b2Transform, int)
    • ComputeAABB(out b2AABB, ref b2Transform, int)
    • ComputeAABB(out b2AABB, ref b2Transform, int)
    • ComputeAABB(out b2AABB, ref b2Transform, int)
    • ComputeAABB(out b2AABB, ref b2Transform, int)
    • ComputeAABB(out b2AABB, ref b2Transform, int)
    • ComputeMass(float)
    • ComputeMass(float)
    • ComputeMass(float)
    • ComputeMass(float)
    • ComputeMass(float)
    • ComputeMass(float)
    • ComputeMass(float)
    • ComputeMass(float)
    • ComputeMass(float)
    • ComputeMass(float)
    • ComputeMass(float)
    • ComputeMass(float)
    • GetChildCount()
    • GetChildCount()
    • GetChildCount()
    • GetChildCount()
    • GetChildCount()
    • GetChildCount()
    • GetChildCount()
    • GetChildCount()
    • GetChildCount()
    • GetChildCount()
    • GetChildCount()
    • GetChildCount()
    • GetShapeType()
    • GetShapeType()
    • GetShapeType()
    • GetShapeType()
    • GetShapeType()
    • GetShapeType()
    • GetShapeType()
    • GetShapeType()
    • GetShapeType()
    • GetShapeType()
    • GetShapeType()
    • GetShapeType()
    • RayCast(out b2RayCastOutput, b2RayCastInput, ref b2Transform, int)
    • RayCast(out b2RayCastOutput, b2RayCastInput, ref b2Transform, int)
    • RayCast(out b2RayCastOutput, b2RayCastInput, ref b2Transform, int)
    • RayCast(out b2RayCastOutput, b2RayCastInput, ref b2Transform, int)
    • RayCast(out b2RayCastOutput, b2RayCastInput, ref b2Transform, int)
    • RayCast(out b2RayCastOutput, b2RayCastInput, ref b2Transform, int)
    • RayCast(out b2RayCastOutput, b2RayCastInput, ref b2Transform, int)
    • RayCast(out b2RayCastOutput, b2RayCastInput, ref b2Transform, int)
    • RayCast(out b2RayCastOutput, b2RayCastInput, ref b2Transform, int)
    • RayCast(out b2RayCastOutput, b2RayCastInput, ref b2Transform, int)
    • RayCast(out b2RayCastOutput, b2RayCastInput, ref b2Transform, int)
    • RayCast(out b2RayCastOutput, b2RayCastInput, ref b2Transform, int)
    • TestPoint(ref b2Transform, b2Vec2)
    • TestPoint(ref b2Transform, b2Vec2)
    • TestPoint(ref b2Transform, b2Vec2)
    • TestPoint(ref b2Transform, b2Vec2)
    • TestPoint(ref b2Transform, b2Vec2)
    • TestPoint(ref b2Transform, b2Vec2)
    • TestPoint(ref b2Transform, b2Vec2)
    • TestPoint(ref b2Transform, b2Vec2)
    • TestPoint(ref b2Transform, b2Vec2)
    • TestPoint(ref b2Transform, b2Vec2)
    • TestPoint(ref b2Transform, b2Vec2)
    • TestPoint(ref b2Transform, b2Vec2)