|
| 18 Dec 2012 11:21 AM |
If I have a part who's front surface is pointing down, and the top surface is pointing forward, can still place a brick behind that part using a negative lookvector? Or would it simply appear above the back surface, which is pointing up.
If it appears above the back surface, can anyone give me an example of lua that will allow me to place the brick behind the bottom surface instead?
more specifically, i snagged a copy of the rc tank from free models that has the moveable turret and after editing so much, i wanted to make an ability to place landmines behind the tank, but apparently both the torso and head of the tank are pointing downwards even though the tank itself looks like its laying flat.
Can anyone help me out here? |
|
|
| Report Abuse |
|
|
1Topcop
|
  |
| Joined: 09 Jun 2009 |
| Total Posts: 6635 |
|
|
| 18 Dec 2012 02:21 PM |
| Behind = Part.CFrame*-Part.CFrame.lookVector -- This should work. |
|
|
| Report Abuse |
|
|
|
| 19 Dec 2012 03:32 PM |
15:32:14 - Players.xiaoxiao181.Backpack.Red Tank.RCTankLocal:337: bad argument #3 to 'CFrame' (CFrame expected, got userdata) 15:32:14 - Script "Players.xiaoxiao181.Backpack.Red Tank.RCTankLocal", Line 337 15:32:14 - stack end |
|
|
| Report Abuse |
|
|
|
| 19 Dec 2012 03:38 PM |
| Should I just create it at the BottomSurface? This is complicated to me lol |
|
|
| Report Abuse |
|
|