ODE Physics SDK version 0.11.1 for FreeBASIC

External libraries (GTK, GSL, SDL, Allegro, OpenGL, etc) questions.
D.J.Peters
Posts: 7858
Joined: May 28, 2005 3:28

ODE Physics SDK version 0.11.1 for FreeBASIC

Postby D.J.Peters » Dec 27, 2009 10:24

ODE Homepage: http://www.ode.org

ODE wiki: http://opende.sourceforge.net/wiki

included:
libdrawstuffwin.a
libdrawstufflin.a
libode.a
libode_single.dll.a
ode_single.dll.def
ode_single.dll

Download: fbode0.11.1.zip

on win32 execute "makewin.bat"
on Linx86 execute "makewin.sh"

one new file: odeinit.bi

Code: Select all

enum dInitODEFlags
  dInitFlagManualThreadCleanup = &H00000001
end enum

declare sub      dInitODE  cdecl alias "dInitODE" ()
declare function dInitODE2 cdecl alias "dInitODE2" (byval flag as dInitODEFlags) as integer

enum dAllocateODEDataFlags
  dAllocateFlagBasicData     = 0
  dAllocateFlagCollisionData = 1
  dAllocateMaskAll           = &HFFFFFFFF
end enum

declare function dAllocateODEDataForThread   cdecl alias "dAllocateODEDataForThread" (flag as dAllocateODEDataFlags) as integer
declare sub      dCleanupODEAllDataForThread cdecl alias "dCleanupODEAllDataForThread" ()
declare sub      dCloseODE                   cdecl alias "dCloseODE" ()


fixed:

Code: Select all

type dGetAABBFn       as sub      cdecl (byval o1 as dGeomID, aabb() as dReal)
type dColliderFn      as function cdecl (byval o1 as dGeomID,byval o2 as dGeomID, byval flags as integer, byval contact as dContactGeom ptr,byval skip as integer) as integer
type dGetColliderFnFn as function cdecl (byval num as integer) as dColliderFn ptr
type dGeomDtorFn      as sub      cdecl (byval o as dGeomID)
type dAABBTestFn      as function cdecl (byval o1 as dGeomID,byval o2 as dGeomID,aabb() as dReal) as integer


changed:

Code: Select all

enum SPARAMS
  dContactMu2       = &h0001
  dContactFDir1     = &h0002
  dContactBounce    = &h0004
  dContactSoftERP   = &h0008
  dContactSoftCFM   = &h0010
  dContactMotion1   = &h0020
  dContactMotion2   = &h0040
  dContactMotionN   = &h0080 ' <---
  dContactSlip1     = &h0100
  dContactSlip2     = &h0200

  dContactApprox0   = &H0000
  dContactApprox1_1 = &h1000
  dContactApprox1_2 = &h2000
  dContactApprox1   = &h3000
end enum

type dSurfaceParameters
' must always be defined
  as SPARAMS mode         
  as dReal   mu
' only defined if the corresponding flag is set in mode
  as dReal   mu2
  as dReal   bounce
  as dReal   bounce_vel
  as dReal   soft_erp
  as dReal   soft_cfm
  as dReal   motion1
  as dReal   motion2
  as dReal   motionN '<---
  as dReal   slip1
  as dReal   slip2
end type


was missing in ODE 0.09

Code: Select all

dJointCreateLMotor
dJointSetLMotorNumAxes
dJointSetLMotorAxis
dJointSetLMotorParam


new in ODE 0.11.1:

Code: Select all

dWorldSetAutoDisableLinearAverageThreshold
dWorldGetAutoDisableLinearAverageThreshold
dWorldSetAutoDisableAngularAverageThreshold
dWorldGetAutoDisableAngularAverageThreshold
dWorldSetAutoDisableAverageSamplesCount
dWorldGetAutoDisableAverageSamplesCount
dWorldSetLinearDampingThreshold
dWorldGetLinearDampingThreshold
dWorldSetAngularDampingThreshold
dWorldGetAngularDampingThreshold
dWorldSetLinearDamping
dWorldGetLinearDamping
dWorldSetAngularDamping
dWorldGetAngularDamping
dWorldSetDamping
dWorldSetMaxAngularSpeed
dWorldGetMaxAngularSpeed

dBodySetDynamic
dBodySetKinematic
dBodyIsKinematic
dBodyGetFirstGeom
dBodyGetNextGeom
dBodySetDampingDefaults
dBodySetDamping
dBodySetLinearDamping
dBodyGetLinearDamping
dBodySetAngularDamping
dBodyGetAngularDamping
dBodySetLinearDampingThreshold
dBodyGetLinearDampingThreshold
dBodySetAngularDampingThreshold
dBodyGetAngularDampingThreshold
dBodySetMaxAngularSpeed
dBodyGetMaxAngularSpeed
dBodySetGyroscopicMode
dBodyGetGyroscopicMode
dBodySetMovedCallback

dJointCreatePlane2D
dJointCreatePR
dJointCreatePU
dJointCreatePiston
dJointSetUniversalAxis1Offset
dJointSetUniversalAxis2Offset
dJointSetPlane2DXParam
dJointSetPlane2DYParam
dJointSetPlane2DAngleParam
dJointSetPRAnchor
dJointGetPRAnchor
dJointSetPRAxis1
dJointGetPRAxis1
dJointSetPRAxis2
dJointGetPRAxis2
dJointSetPRParam
dJointGetPRParam
dJointAddPRTorque
dJointGetPRPosition
dJointGetPRPositionRate
dJointGetPRAngle
dJointGetPRAngleRate
dJointSetPUAnchor
dJointGetPUAnchor
dJointSetPUAnchorOffset
dJointSetPUAxis1
dJointGetPUAxis1
dJointSetPUAxis2
dJointGetPUAxis2
dJointSetPUAxis3
dJointGetPUAxis3
dJointSetPUParam
dJointGetPUParam
dJointSetPUAxisP
dJointGetPUAxisP
dJointAddPUTorque
dJointGetPUPosition
dJointGetPUPositionRate
dJointGetPUAngles
dJointGetPUAngle1
dJointGetPUAngle1Rate
dJointGetPUAngle2
dJointGetPUAngle2Rate
dJointSetPistonAxis
dJointGetPistonAxis
dJointSetPistonParam
dJointGetPistonParam
dJointGetPistonPosition
dJointGetPistonPositionRate
dJointGetPistonAngle
dJointGetPistonAngleRate
dJointGetPistonAnchor
dJointGetPistonAnchor2
dJointSetPistonAnchorOffset
dJointAddPistonForce
Last edited by D.J.Peters on Jul 22, 2010 17:38, edited 1 time in total.
JaDogg
Posts: 345
Joined: Apr 13, 2008 12:11
Location: Sri Lanka - Negombo
Contact:

Postby JaDogg » Dec 29, 2009 15:01

cool this is awsome mann

btw
test_heightfield.exe doesnt run on XPSP3
badmrbox
Posts: 659
Joined: Oct 27, 2005 14:40
Location: Sweden
Contact:

Postby badmrbox » Jan 01, 2010 5:30

test_heightfield.exe doesn't run on vista either.
Frank Dodd
Posts: 444
Joined: Mar 10, 2006 19:22

Postby Frank Dodd » Mar 28, 2010 23:00

Excellent ODE support D.J I'm looking at it with great interest, thanks for the package!
Frank Dodd
Posts: 444
Joined: Mar 10, 2006 19:22

Postby Frank Dodd » May 02, 2010 10:13

Hi D.J

I have finally got around to using this and created a simple layer for the Irrlicht Wrapper with it, it works really well and I had a relatively trouble free time of getting spheres, cubes, cylinders, capsules and convex hulls up and running. I have included a copy of the ODE headers with my disribution.

The only modification I needed to make was to include the following line in mass.bi for the convex hull support : -

Code: Select all

declare sub dMassSetTrimesh             cdecl alias "dMassSetTrimesh"        (byval m as dMass ptr, byval density as dReal, byval geometry as dGeomId)


Many thanks for these headers.
D.J.Peters
Posts: 7858
Joined: May 28, 2005 3:28

Postby D.J.Peters » Jul 22, 2010 17:46

badmrbox wrote:test_heightfield.exe doesn't run on vista either.
please delete your fbode0.11.1 folder
download it again and run makewin.bat ?

thanks for testing

Joshy

Return to “Libraries”

Who is online

Users browsing this forum: No registered users and 2 guests