DragDetector mode for realistic handheld items

I would like to enable players to manipulate physically simulated objects in the world. These are in-world, diegetic, non-important props, so I don’t really want to use Tools to represent these.

The current options offered by DragDetector aren’t very good for this case. The closest I’ve found is BestForDevice, which has almost-good VR behaviour, but doesn’t work well at all on other platforms.

Ideally, there would be a pick-up mode that:

  • ensures the orientation you pick up an object with, is preserved across all input types (not just 6DOF)
  • allows players to naturally carry objects in first person mouselook (rather than just horizontal planar motion)
  • keeps objects at a predictable and realistic distance from the player
  • all of this in one mode that still picks the best input modality per device, for simple freeform physics objects

Additionally, 6DOF should be extended to allow for objects to be held with either hand. :slight_smile:

16 Likes

Big +1 to this. I attempted to make a cooking game with DragDetectors a few months ago but had to abandon it because I couldn’t find a free drag method that allowed the player to move small objects in close quarters - it always led to the dragged object getting shot super far from the camera.

2 Likes

I’m not sure exactly what you want, but perhaps check out “lift and carry”.

You can click ‘edit in studio’ to get your own copy and reuse what you like:

This is a little game I wrote that has scripts for dragging things 3 ways in manners similar to lumber tycoon. Each give you consistent dragging of non-anchored objects and works in both first and third person.

The green one, “LiftAndCarry_Geometric” moves the object in geometric mode, meaning that it anchors the object while carrying.

The purple one, “LiftAndCarry_Physical” moves the object in Physical mode, driven by constraints through the center of mass to follow the cursor.

the magenta one “DangleAndCarry” moves the object in physical mode, driven by constraints that make the location you click follow the cursor, with the box dangling from that point.

The video below shows the “LiftAndCarry_Physical” but all 3 are in that world.
Please try this and let me know how close it gets to what you want?

You can also grab the 3 models separately and inject them in your game with these links:
https://create.roblox.com/store/asset/14988524886/Lift-And-Carry-Geometric
https://create.roblox.com/store/asset/14988529693/Lift-And-Carry-Physical
https://create.roblox.com/store/asset/15485762709/DangleAndCarry

4 Likes