Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
1

Making a blood/gore script. physics are getting hard. how do i do this?

Asked by 4 years ago

I've been editing my current blood script to be like for example. blood flow, phantom forces, etc. And i've been running into the problem that i cant change the physics. for example. detects a vertical wall when splattering. real splatter physics, physical part physics no decals, and that kind of stuff i've been getting alot of trouble trying to recreate those game's blood physics. since it has blood splatters. could somebody help me out?

1
no code=hard to help speedyfox66 237 — 4y
0
Nice! I'm a rank 123 in PF. Also~~ what he said ^^ Ziffixture 6913 — 4y

2 answers

Log in to vote
3
Answered by 4 years ago

Phantom Forces uses raycasting to position and rotate their blood splatters. FindPartOnRay's third returned value is the surface normal of the raycast intersection. This is a unit vector denoting the direction the surface is facing out towards. Here's an example of the surface normal in action

1
Nice work! Ziffixture 6913 — 4y
Ad
Log in to vote
0
Answered by 4 years ago

InfinityDesign how do you actually implement that into a blood script?

Answer this question