Obi Official Forum
Help Realistic Snake Physics with Obi Rope - Printable Version

+- Obi Official Forum (https://obi.virtualmethodstudio.com/forum)
+-- Forum: Obi Users Category (https://obi.virtualmethodstudio.com/forum/forum-1.html)
+--- Forum: Obi Rope (https://obi.virtualmethodstudio.com/forum/forum-4.html)
+--- Thread: Help Realistic Snake Physics with Obi Rope (/thread-3584.html)



Realistic Snake Physics with Obi Rope - woffles - 10-09-2022

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 :)


RE: Realistic Snake Physics with Obi Rope - josemendez - 10-09-2022

(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,


RE: Realistic Snake Physics with Obi Rope - woffles - 12-09-2022

(10-09-2022, 11:26 AM)josemendez Wrote: 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,

Hey, thank you for the reply!

I'm not really sure how the head and body would be as seamless as the videos I showed above, as well as how climbing physics would work with particles.

Thank you in advance for the help!


RE: Realistic Snake Physics with Obi Rope - josemendez - 14-09-2022

(12-09-2022, 11:52 PM)woffles Wrote: Hey, thank you for the reply!

I'm not really sure how the head and body would be as seamless as the videos I showed above,

Depends on how you model the head, just make sure that the thickness of the rope at the start and the number of vertices in the rope section you use match your head model.

Quote:as well as how climbing physics would work with particles.

Friction and adhesion/stickiness, used by your collision material. In this regard particles aren’t any different from a regilar collider.

Kind regards,