|
| 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 |
|
|
|
| 26 Oct 2012 05:52 AM |
| CFrame? I don't really know what you're talking about, sorry ;-; |
|
|
| Report Abuse |
|
|
|
| 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 |
|
|
| |
|
| |
|
|
| 26 Oct 2012 05:00 PM |
| Cmon, someone here must have passed algebra 2 already... |
|
|
| Report Abuse |
|
|
| |
|
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 |
|
|
|
| 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
|
  |
| Joined: 13 Mar 2010 |
| Total Posts: 688 |
|
|
| 26 Oct 2012 06:27 PM |
Edge Rotation.
wiki.roblox.com |
|
|
| Report Abuse |
|
|
| |
|
| |
|
|
| 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
|
  |
| 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 |
|
|
|
| 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 |
|
|
|
| 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 |
|
|
| |
|
| |
|
|
| 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 |
|
|
|
| 27 Oct 2012 10:28 AM |
| I need to do it in a script though :l |
|
|
| Report Abuse |
|
|
|
| 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 |
|
|
|
| 27 Oct 2012 10:52 AM |
| Idk what you are talking about, anyway :l |
|
|
| Report Abuse |
|
|
| |
|
| |
|
|
| 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 |
|
|