Trouble on propeller

Hi, I’m having trouble on making this propeller spin.

Screen Shot 2021-05-11 at 6.49.38 PM

2 Likes

Please provide more detail as to what you are trying to accomplish! It is hard to help when there is only one sentence in the OP.

Ok so I have an airplane, and it has a propeller with the cone being a part(named B), and each propeller being a part(Named union), so I am trying to make the whole propeller model spin. I am having trouble, I tried putting a motor in it but it doesn’t want to spin.

You can use a Motor6D instance, set Part0 to whatever the propeller is attached to (or whatever part you feel comfortable attaching the propeller to), and set Part1 to the actual propeller that you want to have spin. Set the DesiredAngle to inf (or a really large number, input a number big enough and you will get the “inf” text anyway), and use MaxVelocity to control the speed.
You can set this up manually without instancing it via script. But if you prefer to attach this through a script, make sure the server is doing this and not the client.

two things to keep in mind:

  1. Make sure to import your mesh in the correct orientation so that it follows the rotation of the Motor6D (at least if you want the motor to spin the propeller for you without doing other fancy stuff)
  2. You don’t need much velocity to get it to spin fast, even setting it to 1 will spin it really fast, try going up in decimals to get the speed you want.

The good thing with using a Motor6D for this is that you can control this completely locally (as long as the server is aware the Motor6D exists) and have it replicate to the server automatically since this is technically moving the propeller through physics, and physics movers will always be replicated to the server. This includes all body movers.

Why put a Motor in it? I’m guessing you meant a Motor surface on one of the Parts? Those are deprecated.
Use a couple of WeldConstraints to hold the prop blades to the spinner (cone, B) and put an Attachment in there as well.
Put a HIngeConstraint in the fuselage (aircraft body) and make sure the Attachment there is in the same Position/Rotation as the one in the spinner.
Set the HingeConstraint.ActuatorType to Motor.
Make sure the spinner and blades are Unanchored.
Set the HIngeConstraint.MotorMaxTorque to a high number.
When you want the prop to spin, use a script to set the HingeConstraint.AngularVelocity to a decent number (it’s in radians per second).

1 Like