of     1   

Craftero
#188512529Tuesday, May 03, 2016 10:59 AM GMT

I want to program a plane Model I've created, however I have no experience with programming planes and I'm trying to figure out how to do it. What is the best way to script the plane? Any common techniques? Best API elements to use? (i.e. BodyMovers? Parts? etc. ) Don't get me wrong here. I'm an intermediate - advanced scripter with 3 years of scripting behind me. I'm just not sure how to go about this. Any help or advise would be greatly appreciated.
RightLegRed
#188512627Tuesday, May 03, 2016 11:05 AM GMT

It entirely depends on the range of movement you have, and the ease of development overall. If you want forward propulsion purely to power the movement of your plane it would could inserting BodyForce, or BodyVelocity, into main key parts of your plane and controlling these via script. If, for instance, your plane is locked in a certain orientation, you could use BodyForce/BodyVelocity to control the Forward/Back motion, BodyPosition to control the current height of the plane and BodyGyro to control the current rotation. There are other methods available obviously, playing around with the BodyMover objects is definitely recommended.
Craftero
#188512734Tuesday, May 03, 2016 11:12 AM GMT

@RightLegRed To be honest, the version of the Model was just a test for myself to see if I could build a plane. I have no problem creating a new plane with more "sections", so to speak (i.e. Right wing, left wing, body, front turbine, landing gear - All as their own separate Models within the plane Model) I want the most realistic effect possible. I'm not sure what you mean by "forward propulsion" though. Do you mean, for example, the turbine pulls the plane skywards and the angle of the wings effect the direction in which it flies thereafter?
Deranged_User
#188513002Tuesday, May 03, 2016 11:26 AM GMT

for planes, you use body gyro and body velocity.
Craftero
#188525710Tuesday, May 03, 2016 6:46 PM GMT

Any further help or advise? Can anybody answer the question in my previous reply above?
RightLegRed
#188537919Tuesday, May 03, 2016 10:37 PM GMT

You don't have to go as far as to do all of that. Any model will move as long as the parts are properly configured (unanchored, welded etc). The way BodyMovers work is they just apply an amount of force in a direction (or rotation) , you do not actually have to consider air resistance and some other forces (apart from gravity) because this does not exists within ROBLOX, which I believe answers your question question.

    of     1