|
| 15 May 2016 02:14 AM |
You know if you CFrame something and it goes right into another part? The physics engine automatically places it on-top of the part it does even if the part is uncancollided. Is there a way to fix this?
~~~Da siggy is OP~~~ |
|
|
| Report Abuse |
|
|
Yamno
|
  |
| Joined: 10 Jun 2009 |
| Total Posts: 123 |
|
|
| 15 May 2016 03:11 AM |
No, a part would be placed on top of another only if you change Part.Size, Part.Position, Part.Rotation. If you set the CFrame as the last step, it should go into parts.
If you want to set rotation and position, you can use CFrame instead of setting Position and Rotation using a basic combination of
local position = Vector3.new(1,1,1) local rotation = Vector3.new(math.rad(0), math.rad(45), math.rad(45)) Part.CFrame = CFrame.new(position) * CFrame.Angles(rotation)
just make sure that setting the CFrame is the last step after setting the other properties. |
|
|
| Report Abuse |
|
|
| |
|
|
| 15 May 2016 03:32 AM |
So how would I make the above work with :toWorldSpace as I want bricks to spawn right behind the player's torso.
~~~Da siggy is OP~~~ |
|
|
| Report Abuse |
|
|
|
| 15 May 2016 03:56 AM |
I made sure I am not setting any other values after CFrame and it works in Studio but does not work online.
~~~Da siggy is OP~~~ |
|
|
| Report Abuse |
|
|