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 » Scripting Helpers
Home Search
 

Re: Keeping two corners touching when rotated

Previous Thread :: Next Thread 
shadostriker is not online. shadostriker
Joined: 07 Aug 2008
Total Posts: 7860
26 Oct 2012 05:43 AM
Like the rotate tool in cmdutl. But I cant extract it from cmdutl because its got lots of plugin stuff and complicated variables.
Report Abuse
TheColorMan is not online. TheColorMan
Joined: 30 Jan 2010
Total Posts: 11228
26 Oct 2012 05:52 AM
CFrame? I don't really know what you're talking about, sorry ;-;
Report Abuse
doombringer42 is not online. doombringer42
Joined: 13 Nov 2007
Total Posts: 5445
26 Oct 2012 09:49 AM
What you're asking for is fairly difficult to do. It requires knowledge of Object and World coordinates, matrix math, or trigonometry. Any of these three can be applied.

¬ SHG Scripter Tier-2 ♣ LuaLearners Elite
Report Abuse
shadostriker is not online. shadostriker
Joined: 07 Aug 2008
Total Posts: 7860
26 Oct 2012 02:48 PM
Yep.
Report Abuse
shadostriker is not online. shadostriker
Joined: 07 Aug 2008
Total Posts: 7860
26 Oct 2012 04:50 PM
Help
Report Abuse
shadostriker is not online. shadostriker
Joined: 07 Aug 2008
Total Posts: 7860
26 Oct 2012 05:00 PM
Cmon, someone here must have passed algebra 2 already...
Report Abuse
shadostriker is not online. shadostriker
Joined: 07 Aug 2008
Total Posts: 7860
26 Oct 2012 05:34 PM
<.>
Report Abuse
gijsbel11 is not online. gijsbel11
Joined: 07 Feb 2009
Total Posts: 4223
26 Oct 2012 05:38 PM
Can you give a example of some sort? I don't really understand what you want D:
Report Abuse
shadostriker is not online. shadostriker
Joined: 07 Aug 2008
Total Posts: 7860
26 Oct 2012 05:39 PM
So that when you rotate a brick one edge stays at the same position when it is rotated.
Report Abuse
skate1011 is not online. skate1011
Joined: 13 Mar 2010
Total Posts: 688
26 Oct 2012 06:27 PM
Edge Rotation.

wiki.roblox.com
Report Abuse
shadostriker is not online. shadostriker
Joined: 07 Aug 2008
Total Posts: 7860
26 Oct 2012 06:30 PM
Not on the wiki..?
Report Abuse
shadostriker is not online. shadostriker
Joined: 07 Aug 2008
Total Posts: 7860
26 Oct 2012 06:42 PM
:c
Report Abuse
shadostriker is not online. shadostriker
Joined: 07 Aug 2008
Total Posts: 7860
26 Oct 2012 08:32 PM
I have been waiting for 7 days for this answer and my project has been on hold since, please help.
Report Abuse
Aerideyn is not online. Aerideyn
Joined: 16 Jan 2010
Total Posts: 1882
26 Oct 2012 08:45 PM
--I use this:

function RotateModel(Model, StartCFrame, EndCFrame)
for i, v in pairs(Model:GetChildren()) do
if v:isA("BasePart") then
v.CFrame = EndCFrame * StartCFrame:toObjectSpace(v.CFrame)
end
end
end

StartCFrame is the initial CFrame of your origin(think of it as where you hinge is)
EndCFrame is the new origin(where you want your hinge to be after being rotated)
Report Abuse
shadostriker is not online. shadostriker
Joined: 07 Aug 2008
Total Posts: 7860
27 Oct 2012 09:13 AM
I dont know what I would want the endcframe would be if I was rotating it :P
Report Abuse
shadostriker is not online. shadostriker
Joined: 07 Aug 2008
Total Posts: 7860
27 Oct 2012 09:21 AM
PLEASE help me, this is so annoying...
I havnt been able to work on my place for 8 days.
Report Abuse
shadostriker is not online. shadostriker
Joined: 07 Aug 2008
Total Posts: 7860
27 Oct 2012 09:55 AM
Cmon.. :l
Report Abuse
shadostriker is not online. shadostriker
Joined: 07 Aug 2008
Total Posts: 7860
27 Oct 2012 10:18 AM
...................
Report Abuse
superdimensionmaster is not online. superdimensionmaster
Joined: 18 Jan 2008
Total Posts: 8387
27 Oct 2012 10:24 AM
You could weld the two objects and un-anchor them, and re-anchor and un-weld them once you're done.
Report Abuse
shadostriker is not online. shadostriker
Joined: 07 Aug 2008
Total Posts: 7860
27 Oct 2012 10:28 AM
I need to do it in a script though :l
Report Abuse
superdimensionmaster is not online. superdimensionmaster
Joined: 18 Jan 2008
Total Posts: 8387
27 Oct 2012 10:40 AM
You can do that in a script. I mean use the object weld, not the surface type weld.
Report Abuse
shadostriker is not online. shadostriker
Joined: 07 Aug 2008
Total Posts: 7860
27 Oct 2012 10:52 AM
Idk what you are talking about, anyway :l
Report Abuse
shadostriker is not online. shadostriker
Joined: 07 Aug 2008
Total Posts: 7860
27 Oct 2012 12:02 PM
...........
Report Abuse
shadostriker is not online. shadostriker
Joined: 07 Aug 2008
Total Posts: 7860
27 Oct 2012 12:18 PM
q.q
Report Abuse
konichiwah98 is not online. konichiwah98
Joined: 21 Feb 2011
Total Posts: 147
27 Oct 2012 12:26 PM
Well, if your talking about, in example, 2 gears together, then do this.


It is very difficult to explain, I know what your trying to say now. I'll give you some CFrame information but I think that's all I can lend you, I'm still a beginner.


inside the parenthesis represent the coords of

the object

MAIN COMMAND TO MOVE BRICKS:


game.Workspace.Part.CFrame=CFrame.new(0,0,0)

(i,0,0) <--- if you want to repeat
===============================================
Repeating moving brick

for i=#,# do
game.Workspace.Part.CFrame=CFrame.new(i,0,0)
wait(#)
end

===============================================

Non-repeating moving brick

game.Workspace.Part.CFrame=CFrame.new(#,#,#)
wait(#)
game.Workspace.Part.CFrame=CFrame.new(#,#,#)
wait(#)
game.Workspace.Part.CFrame=CFrame.new(#,#,#)
wait(#)
game.Workspace.Part.CFrame=CFrame.new(#,#,#)
wait(#)
game.Workspace.Part.CFrame=CFrame.new(#,#,#)
wait(#)
(For however long)
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripting Helpers
   
 
   
  • 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