Author Topic: BulletPhysics for GLBasic... first preview! :)  (Read 9371 times)

Offline Slydog

  • Prof. Inline
  • *****
  • Posts: 930
  • KodeSource
    • View Profile
    • KodeSource
Re: BulletPhysics for GLBasic... first preview! :)
« Reply #30 on: 2012-Mar-01 »
Do you use 'LIMITFPS' in your demo?
If not, then either BulletPhysics isn't deterministic, or it handles the timing by itself (by skipping frames when needed?).
But keep in mind, I have no experience (or little) with physics libraries, so I may have misunderstood while learning!
My current project (WIP) :: TwistedMaze <<  [Updated: 2015-11-25]

Offline backslider

  • Community Developer
  • Prof. Inline
  • ******
  • Posts: 892
    • View Profile
Re: BulletPhysics for GLBasic... first preview! :)
« Reply #31 on: 2012-Mar-01 »
no, I don't use limitfps, you step the world each frame with your own timer... You will see in the code ;)

Offline kanonet

  • Administrator
  • Prof. Inline
  • *******
  • Posts: 1142
    • View Profile
    • My GLBasic code archiv
Re: BulletPhysics for GLBasic... first preview! :)
« Reply #32 on: 2012-Mar-01 »
The Bullet Engine is an EntitySystem so in my opinion its a really bad idea to use the EntitySystem+Bullet, its just not necessary and a waste of cpu power. Why you want to calculate everything two times?

just make something like that:
Code: GLBasic [Select]
                X_MOVEMENT btGetRigidBodyPosX(self.bt),btGetRigidBodyPosY(self.bt),btGetRigidBodyPosZ(self.bt)
                X_ROTATION btGetRigidBodyRoll(self.bt), 1,0,0
                X_ROTATION btGetRigidBodyYaw(self.bt), 0,1,0
                X_ROTATION btGetRigidBodyPitch(self.bt), 0,0,1
                X_SETTEXTURE tex, tex2
                X_DRAWOBJ ddd, 0
That is what this get functions are for. ;)
Lenovo Thinkpad T430u: Intel i5-3317U, 8GB DDR3, NVidia GeForce 620M, Micron RealSSD C400 @Win7 x64

Offline Nathan

  • Mr. Polyvector
  • ***
  • Posts: 116
    • View Profile
Re: BulletPhysics for GLBasic... first preview! :)
« Reply #33 on: 2012-Mar-01 »
At the moment putting the ES and Bullet together isn't a good idea, because Bullet isn't multiplatform, yet. ;)
Which platforms does this currently work with, I'm guessing Win (obviously) and being the physics library file has an ".a" extension then iOS maybe as well?

Offline backslider

  • Community Developer
  • Prof. Inline
  • ******
  • Posts: 892
    • View Profile
Re: BulletPhysics for GLBasic... first preview! :)
« Reply #34 on: 2012-Mar-02 »
At the moment the lib is win only but Bullet is Cross platform so it will work on iOS and Linux and all other OSs...
But I have to test it. :)

Please be patient. :)

cheers

Offline Schranz0r

  • Premium User :)
  • Administrator
  • Prof. Inline
  • *******
  • Posts: 5013
  • O Rly?
    • View Profile
Re: BulletPhysics for GLBasic... first preview! :)
« Reply #35 on: 2012-Mar-11 »
if you use the source u dont need any lib :)
Like Gernot did in Box2D!

Maybe its possible?!
I <3 DGArray's :D

PC:
AMD RYzen 7 1700 @3.9Ghz, 16GB HyperX Fury 2666Mhz Ram, ASUS ROG GTX 1060 STRIX 6GB, Windows 10 Pro 64Bit, MSi Tomahawk B350 Mainboard