Posts: 11
Threads: 3
Joined: Aug 2022
Reputation:
0
10-09-2022, 02:09 AM
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 :)
Posts: 6,321
Threads: 24
Joined: Jun 2017
Reputation:
400
Obi Owner:
10-09-2022, 11:26 AM
(This post was last modified: 10-09-2022, 11:37 AM by josemendez.)
(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
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,
Posts: 11
Threads: 3
Joined: Aug 2022
Reputation:
0
(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!
Posts: 6,321
Threads: 24
Joined: Jun 2017
Reputation:
400
Obi Owner:
(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,
|