Class b2CircleShape
A solid circle of radius m_radius around the local point m_p.
public sealed class b2CircleShape : b2Shape
- Inheritance
-
b2CircleShape
- Inherited Members
- Extension Methods
Remarks
Reference: Box2D/Collision/Shapes/b2CircleShape.cpp.
Constructors
b2CircleShape()
A circle of radius 0 at the origin.
public b2CircleShape()
b2CircleShape(double, b2Vec2?)
A circle from pybox2d's keyword arguments, circleShape(radius=..., pos=...); a failure carries pybox2d's
Failed on kwargs for b2CircleShape.radius: prefix.
public b2CircleShape(double radius, b2Vec2? pos = null)
Parameters
radiusdoubleThe radius (stored as float32).
posb2Vec2?The center in the body's frame (origin when null).
Exceptions
- OverflowError
Thrown for a radius beyond the float32 range.
Properties
Pos
The center in the body's frame (pybox2d's pos).
public b2Vec2 Pos { get; set; }