Results 1 to 5 of 5
Like Tree1Likes
  • 1 Post By jammas615

Thread: LWJGL Collison

  1. #1
    Join Date
    Dec 2011
    Posts
    11
    Rep Power
    0

    Default LWJGL Collison

    hello I don't have any code for it but I have no idea what to do for collision in LWJGL so I was wondering if somebody can help me just some code that they would use would be grate because I've tried looking at tutorials for help and none of them do
    Thanks alot!

  2. #2
    Norm's Avatar
    Norm is online now Moderator
    Join Date
    Jun 2008
    Location
    SW Missouri
    Posts
    17,458
    Rep Power
    25

    Default Re: LWJGL Collison

    Can you explain what you are doing?

  3. #3
    Join Date
    Dec 2011
    Posts
    11
    Rep Power
    0

    Default Re: LWJGL Collison

    well I'm trying to make a 2d game that has a little block type guy which I'm going to put a texture on and all of that stuff but I'm running in to trouble with making him run into other textures(blocks) its not really sophisticated collision I need but just something that will work

  4. #4
    Norm's Avatar
    Norm is online now Moderator
    Join Date
    Jun 2008
    Location
    SW Missouri
    Posts
    17,458
    Rep Power
    25

    Default Re: LWJGL Collison

    In the simple bouncy ball apps we see here, collisions are detected by using x,y and width and height of the moving shape and for the other shapes being displayed.

  5. #5
    jammas615 is offline Senior Member
    Join Date
    Jul 2011
    Location
    Melbourne, Victoria, Australia
    Posts
    155
    Rep Power
    4

    Default Re: LWJGL Collison

    It might sound weird but you can't specifically "do" collision "in" LWJGL. LWJGL is a game library not an engine. You need to make your own implementation of collision detection.
    But just a question,
    Are you using Opengl?
    If you are maybe you should start with a google search for "opengl 2d collision" or something similar.
    Fubarable likes this.

Similar Threads

  1. LWJGL help please
    By Brandon@JavaForums in forum Advanced Java
    Replies: 12
    Last Post: 12-31-2011, 10:19 AM
  2. Can't figure out how to create a keyboard class for lwjgl
    By falconfetus8 in forum New To Java
    Replies: 1
    Last Post: 11-27-2011, 12:39 AM
  3. LWJGL Collision Detection
    By Furyright in forum Java 2D
    Replies: 1
    Last Post: 10-09-2011, 06:48 AM
  4. lwjgl help PLEASE!
    By Brandon in forum New To Java
    Replies: 1
    Last Post: 10-06-2011, 06:11 AM
  5. LWJGL: Camera + Block Collision
    By Aaron in forum New To Java
    Replies: 6
    Last Post: 11-14-2010, 09:53 PM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •