I made a ship model and I added a vector force and a torque inside the vehicle seat that is welded to the ship. The ship is moving but it is not moving the way I want it to be. I want to make my ship move in the direction it is facing.
I saw other people on the forum setting the force to lookvector * magnitude but it is not working for me.
I have also tried to set the force and torque to different values but I can’t get it to turn smoothly and move in the correct direction.
I am been stuck for some days now so any help is appreciated! Please let me know if you want to know more about the model or the script.
Why not place a BodyThrust object in the VehicleSeat or other Part of the boat? BodyThrust works in the direction of the Part it’s placed in, not world coordinates.
How about you have a part of the boat that is invisible and make sure its front part is facing away from the bot, and then add a bodyvelocity and make the velocity like
Are you sure you’re moving in the right direction?
Just making sure, but if you press Ctrl L your Part move and rotate arrows change between World space and Parts space. Could that be confusing you as to which direction it should be moving?
In Studio>View click View Selector. This will give you a widget you can use to tell which direction is which in World Space. You can also move it wherever you’d like.
The red arrow points in the + X direction, green for + Y, and blue for + Z.
The tool rotates when you move the camera so you can always see which direction is which in World space.
If you rotate a Part it may be affected by this rotation if you are asking it to move in the + Z direction but it’s Front face is facing -25 degrees from the Y axis.
ok I got it to work! What I did was I ungrouped everything and put in a new massless invisible part onto the ship’s deck and weld EVERYTHING together. And then I used the code that loveicicle has provided me and put on a body velocity and only change the x and z value and now the ship is moving better. However, my ship still has issues with being too shaky at the beginning. My problem is technically solved so do I need to start a new post for other questions that I still have?