Edit of asset "Basic physics based object pickup" Accepted

Old/Current New/Edit
Title Basic physics based object pickup Basic physics based object pickup
Description DEMO: https://youtu.be/wTyDLJK8Mww

Movement controls:
'W' - Move forward
'S' - Move backward
'A' - Move left
'D' - Move right
'Left Ctrl' (hold/toggle) - Crouch

Pick up controls:
'E' (toggle) - Pickup object
'T' + Mouse move (while holding an object) - Rotate object in space
'Left click' (while holding an object) - Throw object

How to use the pickup?
To allow and object to be picked up, you will need to create the rigid body object using the LightProp custom node. Only objects using this node will be allowed to be picked up.

The rigid body to be picked up will react to its surroundings. Blocked by a wall? It won't budge. Try anyway? It will automatically drop the object on the floor.

If you do not need the player, you can swap it out with your own player controller. But reattach the Container and the Crosshair node provided in this project as it serves as a way to mount and detect rigid body. Just make sure all the referenced nodes in all the scripts are referenced correctly according to your own hierarchy.

Whats fun?
Swing the object and release it and the object will be carry on with its momentum. Or use it as a base starter for your next "Amnesia"-esque adventure game.

What is not working?
The rigid body weight will not influence the way it is picked up but only the throw distance.
DEMO: https://youtu.be/wTyDLJK8Mww

Movement controls:
'W' - Move forward
'S' - Move backward
'A' - Move left
'D' - Move right
'Left Ctrl' (hold/toggle) - Crouch

Pick up controls:
'E' (toggle) - Pickup object
'T' + Mouse move (while holding an object) - Rotate object in space
'Left click' (while holding an object) - Throw object

How to use the pickup?
To allow and object to be picked up, you will need to create the rigid body object using the LightProp custom node. Only objects using this node will be allowed to be picked up.

The rigid body to be picked up will react to its surroundings. Blocked by a wall? It won't budge. Try anyway? It will automatically drop the object on the floor.

If you do not need the player, you can swap it out with your own player controller. But reattach the Container and the Crosshair node provided in this project as it serves as a way to mount and detect rigid body. Just make sure all the referenced nodes in all the scripts are referenced correctly according to your own hierarchy.

Whats fun?
Swing the object and release it and the object will be carry on with its momentum. Or use it as a base starter for your next "Amnesia"-esque adventure game.

What is not working?
The rigid body weight will not influence the way it is picked up but only the throw distance.

Want to buy me a coffee?
Patreon: https://www.patreon.com/cptfurball
Category Demos Demos
License CC0 CC0
Repository Provider GitHub GitHub
Repository Url https://github.com/CptFurball/basic-first-person-prop-pickup https://github.com/CptFurball/basic-first-person-prop-pickup
Issues Url https://github.com/CptFurball/basic-first-person-prop-pickup/issues https://github.com/CptFurball/basic-first-person-prop-pickup/issues
Godot version Godot 3.4 Godot 3.4
Version String 1.0.0 1.0.0
Download Commit bf1d932cd1d21ee2004054e03a66d7cf8732c8d0 bf1d932cd1d21ee2004054e03a66d7cf8732c8d0
Download Url (Computed) https://github.com/CptFurball/basic-first-person-prop-pickup/archive/bf1d932cd1d21ee2004054e03a66d7cf8732c8d0.zip https://github.com/CptFurball/basic-first-person-prop-pickup/archive/bf1d932cd1d21ee2004054e03a66d7cf8732c8d0.zip
Icon Url https://raw.githubusercontent.com/CptFurball/basic-first-person-prop-pickup/main/icon.jpg
https://raw.githubusercontent.com/CptFurball/basic-first-person-prop-pickup/main/icon.jpg
Preview Insert
Type video
Image/Video URL https://youtu.be/CjuDN72Vrjo
Thumbnail
Preview Insert
Type image
Image/Video URL https://youtu.be/wTyDLJK8Mww
Thumbnail