Help with newtonic physics (ish)

Questions about the LÖVE API, installing LÖVE and other support related questions go here.
Forum rules
Before you make a thread asking for help, read this.
Post Reply
MysticPing2
Prole
Posts: 33
Joined: Tue Dec 10, 2013 7:08 pm

Help with newtonic physics (ish)

Post by MysticPing2 »

So i have this game where you fly a cow in space, and i want it to be newtonic. At the moment when you press "up" you gain speed and "left" and "right" rotates you, the problem is the cow goes into the direction you are rotated towards.

What i want it do do is to add speed into the direction you are facing, not go to the direction you are facing, does it make sense? I have my love attached, i do not want you to do it for me, only to help me with how to do it ( if you do it for me i wont complain though)
Attachments
Asteroid.love
(5.41 KiB) Downloaded 108 times
User avatar
Plu
Inner party member
Posts: 722
Joined: Fri Mar 15, 2013 9:36 pm

Re: Help with newtonic physics (ish)

Post by Plu »

I'm at work so I can't give indepth help, but feel free to steal some code from my ludum dare game, which uses the exact same kind of controls:
http://ruigekonijnen.nl/temp/LD27.love
Post Reply

Who is online

Users browsing this forum: Ahrefs [Bot] and 3 guests