Table of Contents

Class b2CircleShape

Namespace
Gym.Box2D
Assembly
Gym.Environments.dll

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

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

radius double

The radius (stored as float32).

pos b2Vec2?

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; }

Property Value

b2Vec2