ShapeResources class
Constructors
-
ShapeResources(Pointer<
cpShape> _shape)
Properties
Methods
-
cacheRect(
) → Rect -
collide(
{required Shape a, required Shape b}) → ContactPointSet -
destroy(
) → void -
getArea(
) → double -
getBody(
) → Body -
getCenterOfGravity(
) → Vector2 -
getCollisionType(
) → int -
getDensity(
) → double -
getElasticity(
) → double -
getFilter(
) → ShapeFilter -
getFriction(
) → double -
getMass(
) → double -
getMoment(
) → double -
getRect(
) → Rect -
getSensor(
) → bool -
getSpace(
) → Space -
getSurfaceVelocity(
) → Vector2 -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
pointQuery(
{required Vector2 point}) → (double, PointQueryInfo) -
segmentQuery(
{required Vector2 a, required Vector2 b, required double radius}) → (bool, SegmentQueryInfo) -
setBody(
Body body) → void -
setCollisionType(
int collisionType) → void -
setDensity(
double density) → void -
setElasticity(
double elasticity) → void -
setFilter(
ShapeFilter filter) → void -
setFriction(
double friction) → void -
setMass(
double mass) → void -
setSensor(
bool sensor) → void -
setSurfaceVelocity(
Vector2 surfaceVelocity) → void -
toString(
) → String -
A string representation of this object.
inherited
-
update(
Matrix4 transform) → Rect
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited