nicholas-maltbie / PropHunt-Mirror

PropHunt project made using Unity and Mirror Networking
MIT License
5 stars 1 forks source link

Add Basic Item System for Humanoid Character #61

Open nicholas-maltbie opened 3 years ago

nicholas-maltbie commented 3 years ago

Add a basic item system that loads a prefab (item) into a dedicated spot in front of a player (similar to the prop disguise system that is currently implemented). Have the item's position follow the direction the player is looking (using a network child transform similar to camera position right now).

As of right now, simply have the character hold one item and support the character dropping and holding that item. Do not need to support all the items separately.

Since the IK system has already been added, look into the difficulty of adding "hand snap positions" for the item so when the player is holding an item their hands will snap to that location and rotate at the proper angles. If this proves to be too difficult this can be delayed to a later issue.