Playmaker Forum

PlayMaker Help & Tips => PlayMaker Help => Topic started by: patheticorganic on May 06, 2021, 09:39:42 AM

Title: Trail interaction?
Post by: patheticorganic on May 06, 2021, 09:39:42 AM
I have a character that is able to spawn an object with force towards the direction of the mouse, for debug's sake its a visible cube. Attached to it is a trail renderer, intended to look like water.

What I'm trying to do is have the character stick to and slide across the length of the trail render. Aside from how complicated that seems, I'm not even sure if Playmaker can interact with trails.

In theory, I would somehow restrict the character's XYZ to the trail and move it along its length. It seems pretty simple but I'm not very sure where I could start scripting this. I've used Playmaker a bit but I'm still not sure where I could start on this.

Here's a video of the demo:

Thank you.
Title: Re: Trail interaction?
Post by: Weak Interactive on May 06, 2021, 01:47:07 PM
Hey,

This is just an idea, but if you spawn an empty object each time the trail bounces, you can use something like the "Move Towards" action to have the player move from empty object to empty object, essentially following the trail.

I'm sure it will be a bit more complicated than that to set up properly, and I'm sure there are better ways of doing it, but that's probably how I would try it myself.

I hope you find a good way of accomplishing this, good luck!