How to Add Torque
Hey everyone - super newbie here. Any help would be much appreciated. Using the latest Godot stable 3.2.1
I am trying to make a 3d space game in where i have a ship that can fly around. I was able to get movement working (not great)
If I paste wombatstampede's code into my script - it doesn't really work. source for his code - spaceship zip at the end of the post - https://godotforums.org/discussion/comment/19918/#Comment_19918
I can move my ship forward and print to console for each key show up when the button is pressed, but no movement other than forward takes place, so I know my input map appears to be correct.
My original code that "works" (lol i think i get orientation lost since im not using any sort of basis and eventually spin into oblivion) https://pastebin.com/ryMgFQF5 - a user on reddit suggested i use torques which i just cant seem to get working.
His code pasted into my script (commented out things i dont have like animations, and changed z front direction because i was moving backwards instead of forwards. https://pastebin.com/PHC33wDw
His original movement code https://pastebin.com/9wtAfnFT
The rigid body properties seem mostly the same - i cant set my weight and mass independently but the angular velocity and dampening look the same to me. Mine is on the left. His is on the right from his project that works. https://imgur.com/a/O7rCae0
I have put the movement outside to try and get it to go forward and torque up and right but the ship only goes forward
I did fix the weight/mass ratio and then the thrust/turning speeds in the code - so that is a bit out of date. sorry forgot to make that change since this was just largely a copy of my reddit post
Any ideas? Thanks in advance! Happy to provide any additional info.