generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
   
ROBLOX Forum » Game Creation and Development » Scripters
Home Search
 

Re: Can someone send me a wiki link to tool grip positioning?

Previous Thread :: Next Thread 
SkeletalReality is not online. SkeletalReality
Joined: 25 Mar 2011
Total Posts: 19852
03 Jan 2017 02:18 PM
I can't seem to find it, thanks :P


r+://160352940 r+://596082562 r+://596085046
Report Abuse
SashimiRoll is not online. SashimiRoll
Joined: 24 Dec 2015
Total Posts: 72
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
SashimiRoll is not online. SashimiRoll
Joined: 24 Dec 2015
Total Posts: 72
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
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image