Skip to content

Simple movable point interactivity #80

Answered by karkir0003
karkir0003 asked this question in Help
Discussion options

You must be logged in to vote

Never mind. Got it to work. I just had to define the constrain as

useMovablePoint(..., {
  constrain:  ([x, y]) => [
    x,
    <enter f(x) here>
  ]
})

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by stevenpetryk
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
1 participant