Fedorakid
|
  |
| Joined: 17 Jul 2010 |
| Total Posts: 7079 |
|
|
| 23 Dec 2014 04:24 PM |
Alright so I have an anchored model right? which means it doesen't have physics like falling down in mid air.
It has to fall down in mid air/ be CFramed down until it is not in mid air/hits a map/part.
How'd I do that?
For example an anchored brick, I believe I should be doing raycast and how would I do that? Like I need to detect if it's in mid air or not on the ground. |
|
|
| Report Abuse |
|
|
|
| 23 Dec 2014 04:42 PM |
for i=1,20 do for _,i in pairs(model:GetChildren())do if i:IsA"BasePart" then i.CFrame=i.CFrame*CFrame.new(0,-i,0) end end end |
|
|
| Report Abuse |
|
|
Fedorakid
|
  |
| Joined: 17 Jul 2010 |
| Total Posts: 7079 |
|
| |
|
|
| 23 Dec 2014 04:48 PM |
I'm not kidding..
put a wait() in front of the last end and it should move |
|
|
| Report Abuse |
|
|
Fedorakid
|
  |
| Joined: 17 Jul 2010 |
| Total Posts: 7079 |
|
| |
|
|
| 23 Dec 2014 04:50 PM |
Okay fine, I will go away you ignorant and arrogant prick.
|
|
|
| Report Abuse |
|
|
Fedorakid
|
  |
| Joined: 17 Jul 2010 |
| Total Posts: 7079 |
|
|
| 23 Dec 2014 04:51 PM |
| Listen buddy, I appreciate it but that was not at all what I asked for and I learnt what you did about 2 years ago. So I think you are being the ignorant one. |
|
|
| Report Abuse |
|
|
|
| 23 Dec 2014 04:55 PM |
| Fedora, he was trying to help, like you asked, and all you did was be rude. Make an attempt at the script, or get out. |
|
|
| Report Abuse |
|
|
|
| 23 Dec 2014 04:55 PM |
local hitPart,hitPos=workspaceFindPartOnRayWithIgnoreList(Ray.new(Vector3.new(part.CFrame.X,part.CFrame.Y - 1000,part.CFrame.Z),(part.CFrame.p,Vector3.new(part.CFrame.X,part.CFrame.Y - 1000,part.CFrame.Z)).Unit*999),{part}) local dis=(hitPos-part.CFrame).Magnitude if dis<1 then print('THERE IS A PART DIRECTLY BELOW IT') end |
|
|
| Report Abuse |
|
|
Fedorakid
|
  |
| Joined: 17 Jul 2010 |
| Total Posts: 7079 |
|
|
| 23 Dec 2014 05:03 PM |
Buried you dumbass, you can't script or you are just his friend calling for "backup". I needed to learn about detecting a part under a model, not something as looping the model and CFraming it. That was the easy part. Btw I was done with this forum, right now I am just here to argue with people acting dumb. |
|
|
| Report Abuse |
|
|
Fedorakid
|
  |
| Joined: 17 Jul 2010 |
| Total Posts: 7079 |
|
| |
|
|
| 23 Dec 2014 05:05 PM |
Wow, you seriously are hard headed.
I also have no idea who that guy was, and he was actually the only reason why I helped you the second time. |
|
|
| Report Abuse |
|
|
Fedorakid
|
  |
| Joined: 17 Jul 2010 |
| Total Posts: 7079 |
|
|
| 23 Dec 2014 05:05 PM |
Like seriously, you guys are in no position to argue with me, READ THE MAIN CONTENT. I SAID THIS
"Like I need to detect if it's in mid air or not on the ground." |
|
|
| Report Abuse |
|
|
|
| 23 Dec 2014 05:05 PM |
| Just create a value to represent velocity, and every time you run the function, add a little bit to the speed, and then move the model by the speed with SetPrimaryPartCFrame. |
|
|
| Report Abuse |
|
|
|
| 23 Dec 2014 05:06 PM |
| Oh. Yeah, use raycasting. Or your own collision detection. Whatever works. |
|
|
| Report Abuse |
|
|
Fedorakid
|
  |
| Joined: 17 Jul 2010 |
| Total Posts: 7079 |
|
|
| 23 Dec 2014 05:06 PM |
| ^ Yeah I was already done with this thread a long time ago, theres just these idiots arguing for no reason. Thanks anyway. |
|
|
| Report Abuse |
|
|
|
| 23 Dec 2014 05:11 PM |
We were just trying to help you and you suddenly started insulting us. Think of it like this.
Your at a store and ask someone how do I use this, than the person tells you something you already know. Instead of being normal and just sitting though it or telling them nicely.
You start yelling at them and act someone just shot your first born in the face. |
|
|
| Report Abuse |
|
|
Fedorakid
|
  |
| Joined: 17 Jul 2010 |
| Total Posts: 7079 |
|
|
| 23 Dec 2014 05:13 PM |
"Okay fine, I will go away you ignorant and arrogant prick."
Yes, I'm so terrible and of course I started first.
lol |
|
|
| Report Abuse |
|
|
| |
|
fireroo1
|
  |
| Joined: 23 Sep 2011 |
| Total Posts: 5965 |
|
|
| 23 Dec 2014 05:18 PM |
| Calling yourself FedoraKid owning a free fedora. |
|
|
| Report Abuse |
|
|
Fedorakid
|
  |
| Joined: 17 Jul 2010 |
| Total Posts: 7079 |
|
|
| 23 Dec 2014 05:20 PM |
| ^ dude its a dumb name I know, and this is like the only fedora NBCs can have |
|
|
| Report Abuse |
|
|