A downloadable asset pack for Windows, macOS, and Linux

Unity version 2020.3(LTS)

How it works:

Cast 20 or so rays in random directions and the closest hit point in the circle to the Ideal point gets selected as the new target point. So the more rays, the more accurate it will be.  Repeat this process for however many legs you want (I don't know if it works with 2 or less legs!) This ensures that the end of the limb will always touch a wall and not thin air as well as giving the option of having more legs on one side of the creature but still being somewhat random (like a living animal).

Using a linerenderer, it sets the end point to the target point.

So three main sets of points:

Ideal point (the yellow one) needs to be set in inspector. You can leave the target points  alone. Target points are the hit points of the closest ray to the Ideal point. LineRenderer points ('0' for beginning of line, '1' for end)

Warning!: 

The code is quite messy and there are some unnecessary lines here and there. The project contains the A-star pathfinding project (just for moving the player) and the Dotween asset (which I never ended up using), both of which are free. 

The tentacles should also break and find a new point if out of range or a wall comes between the target point and the player but this sometimes doesn't work.


I followed the Rain world procedural animation talk (on youtube) as a vague guide for calculating points but didn't get around to making the tentacles smoothly follow the targets, instead just snapping the linerenderer to the target.

Enjoy! (but use with caution)

StatusReleased
CategoryAssets
Rating
Rated 3.0 out of 5 stars
(1 total ratings)
AuthorPufferSquid
TagsProcedural Generation, Tentacles

Download

Download
TentacleProject.7z 54 MB

Comments

Log in with itch.io to leave a comment.

It’s not the tentacles that I was looking for, but it still caught my attention and now I’m hooked.