Drag Ragdoll Rigidbody + Fly Camera

DevLocker

(9)
FREE
Publisher DevLocker
File size 9.90MB
Number of files 11
Latest version 1
Latest release date 2021-04-01 07:04:02
First release date 2021-02-01 08:48:29
Supported Unity versions 2018.4.2 or higher
======== Drag Ragdoll Rigidbody ========
Simple script to drag around ragdoll (or any object with Rigidbody) with the mouse. It works by temporarily attaching invisible spring joint to the clicked rigidbody and moving it with the mouse.
Useful for testing out the limits of your ragdoll setup.

Usage:
Attach the DragRigidbodyBetter script to an empty object in the scene. It will spawn dragged springs as child objects.

This script is a replacement for the now removed DragRigidbody that was packed with the Unity Standard Assets. It adds some neat features and controls like twisting, pin the springs and render the springs.

Controls:
Left mouse button on any rigidbody - drag it.
While dragging:
• Scroll wheel - drag object closer or further
• Space - pin active spring at current mouse position
• Delete - destroy all pinned springs
• Z/C - twist active spring to left or right

Troubleshooting:
If dragging rigidbodies doesn’t work, make sure the following conditions are met:
• Rigidbodies must have "Is Kinematic" turned off.
• Rigidbodies shouldn’t weigh too much. If they do, increase the drag force via the “Spring” value of script.
• Every rigidbody must have child colliders – colliders outside rigidbodies can’t be dragged.
• No other component is controlling the rigidbodies or colliders (for example Animator).

======== Fly Camera ========
Allows the game camera to be controlled like the editor Scene View camera (using right-click-drag + WASD). Just slap it on your camera and it will start working.
Very useful for game jams or prototyping.

Controls:
• WASD to move
• Q / E are up / down
• Hold Shift to speed up
• Pan with the middle mouse button
• Rotate with the right mouse button
• Scroll wheel - zoom

======== Links ========
GitHub

Icon made by Smashicons from www.flaticon.com

Top Publisher Assets