A little demo I made. More to come later
That’s really neat. My kids called it a choo choo train :). Where did you learn how to use physics? Is there a good tutorial out there?
@MrScience101 - I’ve written about physics in my Codea ebook and in a number of blog posts, but you can judge whether they are any good!
That is amazing! I always have trouble with physics. How did you connect the cars? Edges? :-?
@TheSolderKing, without taking a closer look at the code it’s hard to say, but likely they are connected using joints.
Yes, i use distance joints like this:
physics.joint(DISTANCE, car.body,trailers[1].body,vec2(car.body.x-90,car.body.y),vec2(trailers[1].body.x+40,trailers[1].body.y),120)
@TheSolderKing Igntaz has some great physics tutorials here:
https://coolcodea.wordpress.com/category/physics-2/page/2/
Now the code is in a PDF because it was getting too big. Look at the first post