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: @Dev people, add joint/body related functions plz

Previous Thread :: Next Thread 
Radioaktiivinen is not online. Radioaktiivinen
Joined: 25 Apr 2009
Total Posts: 18629
25 Nov 2011 06:31 AM
-part:GetJoints()
returns joints connecting to part

-part:GetConnectedParts()
returns parts directly connected to part

-part:GetBody()
returns all parts directly or remotely (=A connects to B and B to C, they all in the same body) connected to the part

-Part:GetConnectingJoint(otherpart)
returns joint connecting 2 parts if one exists?

-part:GetBodyCenterOfMass()
returns center of mass of the body the part belongs in (or you can make a body be its own object!)

-part:GetBodyBoundingBox()
returns position and size of bounding box of body, rotation is same as parts rotation

kthx.
Report Abuse
Radioaktiivinen is not online. Radioaktiivinen
Joined: 25 Apr 2009
Total Posts: 18629
25 Nov 2011 06:32 AM
I know its possible to do it yourself and it doesnt lag much at all, but a system like that is hard to get working correctly and there can be bugs and stuff so nubs couldnt make one.
Report Abuse
sncplay42 is not online. sncplay42
Joined: 27 Nov 2008
Total Posts: 11891
25 Nov 2011 09:49 AM
Support because there ought to be a better way than looping through all of JointsService, and not all joints are in JointsService.

I also think JointAdded/JointRemoved events would be useful too. :D
Report Abuse
Radioaktiivinen is not online. Radioaktiivinen
Joined: 25 Apr 2009
Total Posts: 18629
25 Nov 2011 10:10 AM
Actually you dont need to loop thru the jointsservice, you just need to do it once.

Have a table with part-keys and the value as table of joints.

In the start fill those tables by going through the jointsservice, and after that you can just use childadded and removed events of the jointsservice to add or remove a joint to a part. Though you also need to check if the parts of the joint change and stuff...
Report Abuse
sncplay42 is not online. sncplay42
Joined: 27 Nov 2008
Total Posts: 11891
25 Nov 2011 10:16 AM
Yeah, but there's still the matter of joints not in the JointsService.

Anyway I thought you were arguing FOR these features =P
Report Abuse
Radioaktiivinen is not online. Radioaktiivinen
Joined: 25 Apr 2009
Total Posts: 18629
25 Nov 2011 10:29 AM
I am, its annoyingly complex to make it the way i describe. And im sure there are tons of bugs that way...

Also cant you just scan workspace if theyre not in jointsservice? xD
Report Abuse
sncplay42 is not online. sncplay42
Joined: 27 Nov 2008
Total Posts: 11891
25 Nov 2011 10:57 AM
Again, complex and possibly inefficient.

I don't want to have to connect to DescendantAdded and check every single thing that's added to the workspace.
Report Abuse
sk8ercool456 is not online. sk8ercool456
Joined: 24 Jan 2008
Total Posts: 1846
25 Nov 2011 11:02 AM
This is fairly easy. Just organize the joints in JointsService as you please.

Ex:
All joints from a model "Car" are stored in a model named "Car" in JointsService. You can make an ObjectValue in the Car model linked to the joints grouping for even easier access.
Report Abuse
sk8ercool456 is not online. sk8ercool456
Joined: 24 Jan 2008
Total Posts: 1846
25 Nov 2011 01:53 PM
But, I'd like this :3
Report Abuse
Radioaktiivinen is not online. Radioaktiivinen
Joined: 25 Apr 2009
Total Posts: 18629
25 Nov 2011 02:26 PM
@sk8er

no ur method is nub and lags and doesnt work.

What if the car is welded to another car? -.-

u parent the weld to 2 models???
Report Abuse
sk8ercool456 is not online. sk8ercool456
Joined: 24 Jan 2008
Total Posts: 1846
25 Nov 2011 02:27 PM
Why would you weld 2 cars together? Anyway, you'd just make it one model.
Report Abuse
Radioaktiivinen is not online. Radioaktiivinen
Joined: 25 Apr 2009
Total Posts: 18629
25 Nov 2011 02:49 PM
BUT WAT IF I THEN BREAK IT IN 2 PARTS? D:
Report Abuse
sk8ercool456 is not online. sk8ercool456
Joined: 24 Jan 2008
Total Posts: 1846
25 Nov 2011 02:50 PM
Then they're not connected? IDK
Report Abuse
Radioaktiivinen is not online. Radioaktiivinen
Joined: 25 Apr 2009
Total Posts: 18629
25 Nov 2011 02:52 PM
Ha.

U dont know...




Kitten Engine™ handles that!


AHAHAHAHAAHHA now ur games will suk.
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