|
| 01 May 2014 06:40 PM |
My question is less of a broken script question and more of a general knowledge question.
Ok, say I have a gun, and assuming it functions properly, I fire it. Whether its raycast or a projectile doesn't matter. Say the bullet hits an object and leaves a 'bullet hole'. How would I make it to where the bullet hole faces the same orientation as the object its on?
Take Daxters paintball for example. When you fire the gun it leaves a splatter where it hits on an object with the same rotation/orientation as the object.
Like this
(imgur).com/r85oKCN.png
- The Poptard - |
|
|
| Report Abuse |
|
|
|
| 01 May 2014 06:51 PM |
I'm not looking for a script, I'm looking for a way to go about making a script for this.
Like is the a property for the rotation value of a face of an object?
- The Poptard - |
|
|
| Report Abuse |
|
|
|
| 01 May 2014 06:56 PM |
You can use Brick.CFrame:toObjectSpace(Projectile.CFrame) to get the orientation. You'll have to experiment with faces though.
You may also want to use pointToObjectSpace to get the Vector3 version. |
|
|
| Report Abuse |
|
|
|
| 01 May 2014 07:03 PM |
I'm going to look for wiki pages on those.
- The Poptard - |
|
|
| Report Abuse |
|
|