fret13103
|
  |
| Joined: 15 Mar 2010 |
| Total Posts: 881 |
|
|
| 22 Jun 2016 02:00 PM |
I've made a plane and all of the parts needed to be welded together so it doesnt fall apart.
I have a rotating propeller using a CFrame which changes it's euler angles of the the propeller, but this causes the whole model to go ape####, flinging itself all over the place before finally vanishing into oblivion.
How can I tackle this problem? |
|
|
| Report Abuse |
|
|
fret13103
|
  |
| Joined: 15 Mar 2010 |
| Total Posts: 881 |
|
| |
|
Soybeen
|
  |
| Joined: 17 Feb 2010 |
| Total Posts: 21462 |
|
|
| 22 Jun 2016 02:18 PM |
Wellll we can't see the code, so we dunno :))
Make sure the propellers are unanchored, and only welded to the plane at a point that makes sense, then just affect their rotation based on their previous rotation (but not at the junction of the weld part and the plane)
Propeller:SetPrimaryPartCFrame(Propeller.CFrame*CFrame.Angles.new(0,1,0))
|
|
|
| Report Abuse |
|
|
fret13103
|
  |
| Joined: 15 Mar 2010 |
| Total Posts: 881 |
|
|
| 22 Jun 2016 02:21 PM |
Well the code for moving the plane is pretty hefty, but the code for turning the propeller is just
while wait() script.Parent.prop.CFrame = script.Parent.prop.CFrame * CFrame.Angles(math.rad(55), 0, 0) |
|
|
| Report Abuse |
|
|
fret13103
|
  |
| Joined: 15 Mar 2010 |
| Total Posts: 881 |
|
|
| 22 Jun 2016 02:22 PM |
I missed out the end.
(not in studio, just in forums, didnt c+p properly) |
|
|
| Report Abuse |
|
|
Soybeen
|
  |
| Joined: 17 Feb 2010 |
| Total Posts: 21462 |
|
|
| 22 Jun 2016 02:23 PM |
while wait() do*?
Yeah if your plane isn't basing its position off the propellers, and the propellers are unanchored (and non-cancollide just to be safe) then there shouldn't be an issue
|
|
|
| Report Abuse |
|
|
fret13103
|
  |
| Joined: 15 Mar 2010 |
| Total Posts: 881 |
|
|
| 22 Jun 2016 02:29 PM |
| The propellers are manualwelded to the part that sets the plane's position so that they dont fall off of the plane, but cframing their rotation just sends the plane insane. |
|
|
| Report Abuse |
|
|
fret13103
|
  |
| Joined: 15 Mar 2010 |
| Total Posts: 881 |
|
|
| 22 Jun 2016 02:36 PM |
| Rewrote the way I weld parts to the plane, now fixed. |
|
|
| Report Abuse |
|
|
Soybeen
|
  |
| Joined: 17 Feb 2010 |
| Total Posts: 21462 |
|
|
| 22 Jun 2016 02:37 PM |
I thought that might be the issue :) nice
|
|
|
| Report Abuse |
|
|
BanTech
|
  |
| Joined: 31 Dec 2015 |
| Total Posts: 886 |
|
|
| 22 Jun 2016 02:40 PM |
| Another option could be to change the weld's cframe (either C0 or C1) |
|
|
| Report Abuse |
|
|
fret13103
|
  |
| Joined: 15 Mar 2010 |
| Total Posts: 881 |
|
|
| 22 Jun 2016 02:44 PM |
NEVERMIND.
It was because the prop was anchored ;-;
still sends the plane hurtling around ;_; |
|
|
| Report Abuse |
|
|
Soybeen
|
  |
| Joined: 17 Feb 2010 |
| Total Posts: 21462 |
|
|
| 22 Jun 2016 02:48 PM |
unanchor all that bizniss
Make sure the propeller and the plane have NO positional reliance with each other aside from the *immobile* welding part that joins them.
|
|
|
| Report Abuse |
|
|
fret13103
|
  |
| Joined: 15 Mar 2010 |
| Total Posts: 881 |
|
|
| 22 Jun 2016 02:53 PM |
| If I change the CFrame of the weld constantly, the plane is unable to move. |
|
|
| Report Abuse |
|
|
fret13103
|
  |
| Joined: 15 Mar 2010 |
| Total Posts: 881 |
|
|
| 22 Jun 2016 02:54 PM |
| It's not a part that joins them, it's a manualweld instance. |
|
|
| Report Abuse |
|
|
BanTech
|
  |
| Joined: 31 Dec 2015 |
| Total Posts: 886 |
|
|
| 22 Jun 2016 02:57 PM |
| Can't you just put a hinge and a bodymover on it and be done? lol |
|
|
| Report Abuse |
|
|
fret13103
|
  |
| Joined: 15 Mar 2010 |
| Total Posts: 881 |
|
|
| 22 Jun 2016 03:02 PM |
| If I use a hinge the props fall off. |
|
|
| Report Abuse |
|
|
Soybeen
|
  |
| Joined: 17 Feb 2010 |
| Total Posts: 21462 |
|
|
| 22 Jun 2016 03:06 PM |
You just need a junction that BOTH the PROPELLER and the PLANE are attached to. One that DOESN'T MOVE.
Affecting the rotation of the propeller if it's just attached with a Weld object creates a relationship between both the plane and the weld, meaning it will always go flying if the Part1 or Part0 of the weld is set to ANYTHING on the propeller that moves.
|
|
|
| Report Abuse |
|
|
Soybeen
|
  |
| Joined: 17 Feb 2010 |
| Total Posts: 21462 |
|
|
| 22 Jun 2016 03:06 PM |
Read that as if I were emphasizing and not screaming.
|
|
|
| Report Abuse |
|
|
fret13103
|
  |
| Joined: 15 Mar 2010 |
| Total Posts: 881 |
|
| |
|
Skellobit
|
  |
| Joined: 13 Apr 2016 |
| Total Posts: 12758 |
|
|
| 22 Jun 2016 03:09 PM |
soybeen maybe you should see a psychiatrist
|
|
|
| Report Abuse |
|
|
Soybeen
|
  |
| Joined: 17 Feb 2010 |
| Total Posts: 21462 |
|
|
| 22 Jun 2016 03:10 PM |
I see them on TV all the time
|
|
|
| Report Abuse |
|
|
fret13103
|
  |
| Joined: 15 Mar 2010 |
| Total Posts: 881 |
|
|
| 22 Jun 2016 03:11 PM |
| @Soy, the plane still spins away :( |
|
|
| Report Abuse |
|
|
Skellobit
|
  |
| Joined: 13 Apr 2016 |
| Total Posts: 12758 |
|
| |
|
fret13103
|
  |
| Joined: 15 Mar 2010 |
| Total Posts: 881 |
|
| |
|