I’m trying to make a cart ride game and add some movement to the cart by using a LinearVelocity instance. However, i can’t hardcode it’s velocity because of the turns and hills, etc.
How can i apply velocity on only the x axis for example, in the direction the part is facing?
Change Mode.RelativeTo to Attachment0 and set the Attachment0 to an attachment where its x is facing the front direction of the cart
So then the force will be relative to where the attachments facing
Hey, that solved the direction yea, but now after 10 or 20 studs it goes kinda up and starts spinning around. I assume because the RelativeTo mode also follows orientation. I basically just need to move forward in the way it’s facing.
Why are you using a force? You should be using hinge constraints. Just set their ActuatorType to Motor, and you can use a script to set it’s AngularVelocity using VehicleSeat.Throttle.