[SOLVED] How do i resize my part based on its velocity?

so, i currently have a blood system for my game and im trying to make it even more realistic by making the splatter size and orientation based on the blood velocity when it hit something, example (not my video):

https://streamable.com/mp7pz2

I’m a little bit confused here are you asking:

  • how do I check the velocity of a part/instance to change it’s Vector3

or

  • what’s a formula for changing a part’s Vector3 shape based on how much velocity it has
1 Like
  • what’s a formula for changing a part’s Vector3 shape based on how much velocity it has

That depends on you and velocity. What I mean is how do you want the shape to change?

Do you want to change the:

  • The X
  • The Y
  • or The Z

to the

speed

of the velocity or the

direction

of the velocity?

2 Likes

only the direction, the blood size is randomized, ill make it kinda big on the velocity direction, then ill multiply the current size by random.new():nextnumber()

Okay let me recap so I’m not getting confused.

  1. You want to find a parts velocity’s direction
  2. You’ll change the size of the part based on such direction
  3. Then

Well then I found a nice post on the devforum where you can find the direction of a part

So with this formula you should have a start to making your formula for part changing based on the above formula.

1 Like

thank you, that worked very well