MEDYAN.update_ball!

Tuple{MEDYAN.Context, MEDYAN.BallIdx}

update_ball!(c::Context, ball::Union{BallIdx, Tag{BallIdx}}; kwargs...)

Update properties of an existing ball. Unspecified properties remain unchanged.

Keyword Arguments

  • position::Union{Nothing, SVector{3, Float64}}=nothing: New position (nm)
  • radius::Union{Nothing, Float32}=nothing: New radius (nm)
  • stiffness::Union{Nothing, Float32}=nothing: New stiffness (pN/nm)
  • state::Union{Nothing, SVector{3, Int64}}=nothing: New state vector
  • is_minimized::Union{Nothing, Bool}=nothing: Whether the ball is marked as minimized. Defaults to false when position or radius is changed, otherwise unchanged. Set explicitly to override the default behavior.

See also: make_ball!, remove_ball!, get_position, is_minimized