ShapeResources class

Constructors

ShapeResources(Pointer<cpShape> _shape)

Properties

hashCode int
The hash code for this object.
no setterinherited
isExist bool
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
toPointer Pointer<cpShape>
no setter

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