setRadius method

void setRadius(
  1. double radius
)

/// Set the radius of a poly shape.

This operation is unsafe In this case "unsafe" is referring to operations which may reduce the physical accuracy or numerical stability of the simulation, but will not cause crashes. * The prime example is mutating collision shapes. Chipmunk does not support this directly. Mutating shapes using this API will caused objects in contact to be pushed apart using Chipmunk's overlap solver, but not using real persistent velocities. Probably not what you meant, but perhaps close enough.

Implementation

void setRadius(double radius) => bindings.cpPolyShapeSetRadius(_shape.toPointer, radius);