BASIC

Author Topic: Box2D in GLBasic?  (Read 78 times)

Offline Bluepixel

  • Mc. Print
  • *
  • Posts: 10
  • Bluepixel Studios.
    • View Profile
Box2D in GLBasic?
« on: 2019-Nov-10 »
Hi there, I am working on a small physics based game and would love to add in Box2D physics, since that's the only physics library for GLBasic I could find, so I found a Box2D library in the showroom, downloaded it, and ran the example project. The example project ran fine, but after compiling it within the editor it simply stated; *1 FAILED*. I created a hello world project, took the Box2D library and included it into my project, I ran it and the project failed, which leads me to believe that it's probably outdated, which is unfortunate since I was really hoping I could get some physics working :blink:

Anyone that can help me with this?



 :offtopic: PS. I am very sorry about my frequent posts, I am rather new to GLBasic, so I am very curious as to of how things work. I will try to do as much research as I can on my own before posting anything. :offtopic:
There are two ways to write error-free programs; only the third one works.
(Alan J. Perlis)

Offline MrPlow

  • Prof. Inline
  • *****
  • Posts: 1535
    • View Profile
Re: Box2D in GLBasic?
« Reply #1 on: 2019-Nov-10 »
Hi

I will try out the box2d library and see if I can spot the problem...I used it briefly before for an older project.
Comp:
Speccy-48k, Speccy-128k, Amigas, PCs

Offline Bluepixel

  • Mc. Print
  • *
  • Posts: 10
  • Bluepixel Studios.
    • View Profile
Re: Box2D in GLBasic?
« Reply #2 on: 2019-Nov-11 »
Ah thanks a lot, tell me when you found something! :)
There are two ways to write error-free programs; only the third one works.
(Alan J. Perlis)

Offline Schranz0r

  • Premium User :)
  • Administrator
  • Prof. Inline
  • *******
  • Posts: 5024
  • O Rly?
    • View Profile
Re: Box2D in GLBasic?
« Reply #3 on: 2019-Nov-11 »
Hi,

read down the topic here :)
You need the Headerfiles for GLBasic!
I <3 DGArray's :D

PC:
AMD Ryzen 7 1700 @3.9GHz, 16GB HyperX Fury 3000MHz Ram, ASUS ROG GTX 1060 STRIX 6GB, Windows 10 Pro 64Bit, MSi Tomahawk B350 Mainboard

Offline erico

  • Community Developer
  • Prof. Inline
  • ******
  • Posts: 4228
    • View Profile
    • Portfolio
Re: Box2D in GLBasic?
« Reply #4 on: Yesterday at 12:02 AM »
Wasen´t there a bullet physics implementation somewhere on the forum?
I recall watching a video about it and taking part on the discussion but I can´t seem to find the post anymore.

Offline Bluepixel

  • Mc. Print
  • *
  • Posts: 10
  • Bluepixel Studios.
    • View Profile
Re: Box2D in GLBasic?
« Reply #5 on: Yesterday at 10:52 AM »
@Schranz0r

Hi there, thanks a lot for the reply!  :)

Exactly how should I use these files?  O_O

I am quite new for GLBasic, so im a bit confused as to of how things work, sorry for that!
There are two ways to write error-free programs; only the third one works.
(Alan J. Perlis)