Search found 5 matches

by frisbro
Tue Jul 28, 2015 5:51 pm
Forum: Support and Development
Topic: [SOLVED]Love2d physics body and hump camera rotation
Replies: 9
Views: 6095

Re: Love2d physics body and hump camera rotation

Yes thank-you very much for your answer and your patience.
- felix
by frisbro
Tue Jul 28, 2015 4:28 pm
Forum: Support and Development
Topic: [SOLVED]Love2d physics body and hump camera rotation
Replies: 9
Views: 6095

Re: Love2d physics body and hump camera rotation

The problem is that the camera doesen't rotate to the body rotation :/
by frisbro
Tue Jul 28, 2015 3:15 pm
Forum: Support and Development
Topic: [SOLVED]Love2d physics body and hump camera rotation
Replies: 9
Views: 6095

Re: Love2d physics body and hump camera rotation

Yes i attach it, but i think there are to many files for the other parts of the game but here is what im trying in code i dont think this code is runnable and it's not my full code it's just a code to illustrate what i'm trying to do -- sorry for my bad english Camera = require "libs/hump/camer...
by frisbro
Tue Jul 28, 2015 2:51 pm
Forum: Support and Development
Topic: [SOLVED]Love2d physics body and hump camera rotation
Replies: 9
Views: 6095

Re: Love2d physics body and hump camera rotation

I'm just creating a rectangle and then i try to rotate the hump camera :/
by frisbro
Tue Jul 28, 2015 2:23 pm
Forum: Support and Development
Topic: [SOLVED]Love2d physics body and hump camera rotation
Replies: 9
Views: 6095

[SOLVED]Love2d physics body and hump camera rotation

Hello Lovers!

I'm using the hump camera lib in my game, but i cant figure out how to rotate the camera to the same angle as a physic body rotation

I tried using the code bellow but, the rotation is very strange.

Code: Select all

cam:rotateTo(object.body:getAngle())
--Thanks