Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Help  Realistic Snake Physics with Obi Rope
#2
(10-09-2022, 02:09 AM)woffles Wrote: Hey all,

I'm aware that it's possible to create some snake-like movement with Obi Rope, through the YouTube channel as well as the demo scene. I was wondering whether it'd be possible to get it even closer to something like this - https://www.youtube.com/watch?v=EUHFG2CnBJ8, done almost 4 years ago, and this - https://www.youtube.com/watch?v=D9lunzyn5yo, around 10 months ago, since the one provided was rather finnicky when climbing or utilizing snake body physics in general.

thank you, and have a nice day Sonrisa

Hi there!

The included snake scene is just an example, snake mechanics are implemented as a simple script on top of Obi's API. All this script does is make each particle in the snake body follow the one in front of it, as long as they're in contact with a collider (to simulate "traction").

You can implement your own snake mechanics any way you want, either using the included sample script as a basis or in a completely different way. It's 100% up to you.

Using the included sample, you can try increasing the collision material friction and stickiness, to get particles (and hence the snake) to stick more to surfaces, making it more similar to the second example. Also adjusting the SnakeController script parameters will result in different behavior.

kind regards,
Reply


Messages In This Thread
RE: Realistic Snake Physics with Obi Rope - by josemendez - 10-09-2022, 11:26 AM