mosra / magnum-examples

Examples for the Magnum C++11 graphics engine
https://magnum.graphics/
The Unlicense
282 stars 95 forks source link

Dragging and Dropping Example? #101

Open lonnietc opened 2 years ago

lonnietc commented 2 years ago

Hello,

Sorry if this not the correct place to ask this as I could not find a Magnum Slack channel or Discord server so I am not sure where the Magnum user community is located.

I am wondering if there are any examples of using the mouse in a wasm seen to grab an object and move just the object around to different positions and releasing the object?

The closest thing that I found was an Object Picking demo:

https://doc.magnum.graphics/magnum/examples-picking.html

but it seemed only to allow you to select an object but not move that single object to a new position within the scene.

https://magnum.graphics/showcase/picking/