I get no syntax errors at all. You should replace X("wheel1"), X("wheel2"), Y("wheel1"), and Y("wheel2") with your own objects. Note that atan2 is a function that takes two parameters --- e.g., atan(x,y)Quote:
Originally Posted by Shawn
Printable View
I get no syntax errors at all. You should replace X("wheel1"), X("wheel2"), Y("wheel1"), and Y("wheel2") with your own objects. Note that atan2 is a function that takes two parameters --- e.g., atan(x,y)Quote:
Originally Posted by Shawn
atan2 was also only added in the most recent MMF2 build. Make sure you're up to date/
You can still do the function still without atan2, just divide the two anwsers manually.
-Variant
Well apparently I had some typo in my equation. It's working now. The tank rotates properly, it just doesn't really line up with the slope so it looks a little weird. I'm working on fixing that at the moment.Quote:
Originally Posted by variant