I have problem with newton collision.
the ball did not bouncing on the block or floor but before block
this si my code:
make memblock 1,1
load object "levels\level1.x",1
position object 1,0,0,0
rotate object 1,-90,180,0
Col = NDB_NewtonCreateTreeCollision( 1 )
Level1 = NDB_NewtonCreateBody( Col )
NDB_BodySetDBProData Level1, 1
NDB_NewtonBodySetDestructorCallback Level1
NDB_NewtonReleaseCollision Col
nevercalled()
make object sphere 100,10
color object 100,rgb(255,0,0)
col=ndb_newtoncreatesphere(10,10,10)
sphere= ndb_newtoncreatebody(col)
ndb_buildmatrix 0,0,0,50,220,-20
ndb_newtonbodysetmatrix sphere
ndb_calculatemispheresolid 10,5
ndb_newtonbodysetmassmatrix sphere,5
ndb_bodysetgravity sphere,1
ndb_bodysetdbprodata sphere,100
Only learning will make a pro game developers from us