dansk
|
  |
| Joined: 24 Dec 2008 |
| Total Posts: 548 |
|
|
| 02 Oct 2015 04:24 AM |
So I'm trying to make my own custom dragger for testing purposes. However, I am trying to drag entire models, not just bricks. Any recommendations?
Main problem is that I can't make it so that the model is placed on the walls. It only works well when mouse is pointed to the ground. |
|
|
| Report Abuse |
|
|
dansk
|
  |
| Joined: 24 Dec 2008 |
| Total Posts: 548 |
|
|
| 02 Oct 2015 04:25 AM |
| So Basically when I'm dragging the model and pointing it to a wall/side of a brick, it will teleport to the top instead of on the side. |
|
|
| Report Abuse |
|
|
|
| 02 Oct 2015 04:36 AM |
| Are u trying to make a dragging system for things like in Lumber tycoon 2? |
|
|
| Report Abuse |
|
|
|
| 02 Oct 2015 08:33 AM |
raycasting + mouse.Target + mouse.Hit + model:SetPrimaryPartCFrame
i make u math.sqrt() |
|
|
| Report Abuse |
|
|
dansk
|
  |
| Joined: 24 Dec 2008 |
| Total Posts: 548 |
|
|
| 02 Oct 2015 10:13 AM |
| I haven't ever played Lumber Tycoon but I am trying to make a model dragging system so that I can place pre made portraits on walls and set bricks on the floor and ceiling. And yeah I've tried setting the CFrame of the model with mouse.hit but I don't know the formula to position the model (which has more than 1 brick in it and a set PrimaryPart obviously) to where it will just stick to the walls or ceiling. I imagine you would have to use GetModelSize() or whatever its called but I just don't know how to. |
|
|
| Report Abuse |
|
|
FlyNormal
|
  |
| Joined: 30 Sep 2015 |
| Total Posts: 344 |
|
|
| 02 Oct 2015 10:17 AM |
| You want to place models in the wall's interior AKA the model going inside the wall, or just place it nearby or something? |
|
|
| Report Abuse |
|
|
dansk
|
  |
| Joined: 24 Dec 2008 |
| Total Posts: 548 |
|
|
| 02 Oct 2015 10:24 AM |
| So basically I drag the model by pointing my mouse on the floor and it works fine. But when I point the model on the side of a brick, it goes on top of it instead of sticking to the side of the brick. I want to be able to place models on sides of bricks. |
|
|
| Report Abuse |
|
|
FlyNormal
|
  |
| Joined: 30 Sep 2015 |
| Total Posts: 344 |
|
|
| 02 Oct 2015 10:29 AM |
| I see. This will require some time to accomplish. I will help you once I get the time. |
|
|
| Report Abuse |
|
|
|
| 02 Oct 2015 10:29 AM |
raycasting and setprimarypartcframe
DermonDarble is pretentious |
|
|
| Report Abuse |
|
|
dansk
|
  |
| Joined: 24 Dec 2008 |
| Total Posts: 548 |
|
| |
|
dansk
|
  |
| Joined: 24 Dec 2008 |
| Total Posts: 548 |
|
|
| 02 Oct 2015 11:47 AM |
| I really just don't know the formula for the placement lol |
|
|
| Report Abuse |
|
|
dansk
|
  |
| Joined: 24 Dec 2008 |
| Total Posts: 548 |
|
| |
|
dansk
|
  |
| Joined: 24 Dec 2008 |
| Total Posts: 548 |
|
| |
|