-
-
Notifications
You must be signed in to change notification settings - Fork 6
Basic Usage HOWTO
Jakob Flierl edited this page May 24, 2016
·
18 revisions
p = Plane(0,1,0,0,100) -- <x,y,z> up vector, mass, dim (for OpenGL preview)
p.col = "#ff0000" -- red color
v:add(p) -- add it to the view
s = Sphere(1,10) -- 1 diameter, 10 mass
s.pos = btVector3(0,10,0) -- position the sphere 10 units above the plane
v:add(s)
v.cam.pos = btVector3(100,100,100) -- cam position
v.cam.look = btVector3(0,5,0) -- cam location
See https://github.com/bullet-physics-playground/bpp/tree/master/demo#contents