|
| 03 Jan 2017 02:18 PM |
I can't seem to find it, thanks :P
r+://160352940 r+://596082562 r+://596085046 |
|
|
| Report Abuse |
|
|
|
| 03 Jan 2017 02:50 PM |
| http://wiki.roblox.com/index.php?title=API:Class/Tool/Grip A tool is attached to the player via a weld. The weld's C0 property is fixed as ############# ### ## ## ## ### ## ## ## ## ### ### and the C1 is set as the tool grip. The basic rule of thumb when it comes to welds is: part0.CFrame * C0 == part1.CFrame * C1 That means if we know the world positions of the right arm (part0.CFrame) and the tool handle (part1.CFrame) we can easily solve for C1 (the tool grip). C1 = part1.CFrame:inverse() * part0.CFrame * C0 That's it! If you use a plugin like this it is a lot easier as it provides handles that are easy to drag as opposed to having to write a few lines of code. https://www.roblox.com/library/153352998/Tool-grip-editor |
|
|
| Report Abuse |
|
|
|
| 03 Jan 2017 02:53 PM |
Urgh.. The filter formatted my post let's try again:
http://wiki.roblox.com/index.php?title=API:Class/Tool/Grip
A tool is attached to the player via a weld. The weld's C0 property is fixed as (see wiki page) and the C1 is set as the tool grip. The basic rule of thumb when it comes to welds is:
part0.CFrame * C0 == part1.CFrame * C1
That means if we know the world positions of the right arm (part0.CFrame) and the tool handle (part1.CFrame) we can easily solve for C1 (the tool grip).
C1 = part1.CFrame:inverse() * part0.CFrame * C0
That's it! If you use a plugin like this it is a lot easier as it provides handles that are easy to drag as opposed to having to write a few lines of code.
https://www.roblox.com/library/153352998/Tool-grip-editor |
|
|
| Report Abuse |
|
|