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

How do I position a part's side against another part's?

Asked by
Supint 60
8 years ago

Here's the situation: I made a gun using raycasting, and when FindPartOnRay returns a part to me, I make another part and position it at the endPoint also returned to me. The problem is, I don't want the new part's center at the endPoint, I want the side which is facing the part returned to me of the new part to be positioned at the endPoint.

Any ideas?

1
Not sure what you mean but I think you would want to offset the position by half its size. Perci1 4988 — 8y
0
You put too many words in the wrong order, I can't tell what you're saying. 1waffle1 2908 — 8y
0
@Perci: Yes, but in which direction to offset the part is the difficult aspect. Supint 60 — 8y

Answer this question