Jump to content

  • Log In with Google      Sign In   
  • Create Account

Banner advertising on our site currently available from just $5!


1. Learn about the promo. 2. Sign up for GDNet+. 3. Set up your advert!


Olaf Van Schlacht

Member Since 16 Dec 2011
Offline Last Active Yesterday, 06:38 AM

Posts I've Made

In Topic: LibGDX vector2 length

07 June 2015 - 02:33 AM

The length of a vector can be used in various ways. You should check a source about vector properties and operations somewhere in order to find out what the length is used for.

http://en.wikipedia.org/wiki/Euclidean_vector

 

As for the length formular it is: length = Math.sqrt(x² + y²).


In Topic: LibGDX overlaps problem

30 May 2015 - 07:03 AM

if (sprite.getBoundingRectangle().contains(Gdx.input.getX(), Gdx.input.getY()) {
    // do something
}

Maybe use the contains method instead of the overlaps method. Remember if your using a camera u need to unproject the mouse coordinates first before passing them to the contains method.

 

Unprojection version:

Vector3 mousePosition = camera.unproject(new Vector3(Gdx.input.getX(), Gdx.input.getY(), 0f));

if (sprite.getBoundingRectangle().contains(mousePosition.x, mousePosition.y) {
    // do something
}

In Topic: why graphics card need audio drivers

26 May 2015 - 02:38 AM

the only reason I can think of is because they have to pass audio through the HDMI port but then there is HDMI drivers too

are those sound drivers used for something else?

I think that is the reason. Since HDMI is able to transport audio data there need to be an driver driver for this. 


In Topic: What's your job and dream?

22 May 2015 - 02:48 AM

Made an apprenticeship as an application developer back in 2009. After I finished my apprenticeship I was not satisfied with my knowledge and went to university.

 

Now I'm studying applied computer science and work at a small software company half the week as an application developer. I'm working on hobby projects in my spare time and hope to find a small project team after graduation. I'm really into the technical side of programming and love to solve complex problems.


In Topic: 2.5d depth rendering

17 May 2015 - 02:31 AM

I guess your using the integrated TiledMapRenderer of Libgdx?

 

Take a look at this site and search for the title "Using Depth Buffer"

http://www.cocos2d-x.org/hub/23

 

Maybe you'll find an answer there.


PARTNERS