|
| 26 Mar 2016 12:25 PM |
How would you create the a script similar to the blood effect in Phantom Forces? Like when a player gets hit, a pool of blood forms on the walls or the ground.
The part that I need help with is finding the rotation of the wall so I can properly rotate the blood splatter so it matches the wall's slant. |
|
|
| Report Abuse |
|
|
Laakari
|
  |
| Joined: 07 Aug 2014 |
| Total Posts: 17362 |
|
|
| 26 Mar 2016 12:26 PM |
Probably something to do with Region3 and the parts in that region.
|
|
|
| Report Abuse |
|
|
|
| 26 Mar 2016 12:27 PM |
| i would use raycasting and draw a ray straight down to determine the hit pos and the surface normal |
|
|
| Report Abuse |
|
|
|
| 26 Mar 2016 01:58 PM |
| I was thinking about using raycast too. Upon damage, it would shoot a random raycast around the character and get the position it hit. But how can you determine the rotation and stuff. |
|
|
| Report Abuse |
|
|
|
| 26 Mar 2016 01:59 PM |
| thats what using the surface normal of a ray is for |
|
|
| Report Abuse |
|
|