doneyes
|
  |
| Joined: 21 Mar 2008 |
| Total Posts: 3466 |
|
|
| 05 Jul 2013 11:04 AM |
| I know how to move stuff around with CFrame, but what equation should I use to make brick1 move to brick 2 on a set path? |
|
|
| Report Abuse |
|
|
doneyes
|
  |
| Joined: 21 Mar 2008 |
| Total Posts: 3466 |
|
| |
|
|
| 05 Jul 2013 12:43 PM |
game.Workspace.SimpleTutorialBrick.CFrame = CFrame.new(game.Workspace.OtherBrickForTutorial.Position)
it werks. |
|
|
| Report Abuse |
|
|
morash
|
  |
| Joined: 22 May 2010 |
| Total Posts: 5834 |
|
|
| 05 Jul 2013 12:44 PM |
or
game.Workspace.SimpleTutorialBrick.CFrame = CFrame.newgame.Workspace.OtherBrickForTutorial.Position.CFrame
it werks bettah! |
|
|
| Report Abuse |
|
|
morash
|
  |
| Joined: 22 May 2010 |
| Total Posts: 5834 |
|
|
| 05 Jul 2013 12:45 PM |
wait, that doesn't work XD
ATTEMPT NUMBAH 2
or
game.Workspace.SimpleTutorialBrick.CFrame = game.Workspace.OtherBrickForTutorial.Position.CFrame
it werks bettah! |
|
|
| Report Abuse |
|
|
DrWaffler
|
  |
| Joined: 16 Sep 2011 |
| Total Posts: 4248 |
|
|
| 05 Jul 2013 12:45 PM |
Pretty sure he's asking about moving it slowly over time. In which case you'll need to do....
MATH!
*gasp* *screams* |
|
|
| Report Abuse |
|
|
|
| 05 Jul 2013 12:45 PM |
(Will contain errors)
local Origin = CFrame.new(Brick1, Brick2) local Look = Origin.lookVector Brick1.CFrame = CFrame.new(Origin.p + Look * increment) -- u supply increment.
|
|
|
| Report Abuse |
|
|