Implement SetScratchBuffer

This commit is contained in:
bloeys
2022-01-28 06:36:19 +04:00
parent 4af88c06d3
commit 56a7943405
4 changed files with 17 additions and 2 deletions

View File

@ -73,6 +73,9 @@ func main() {
println("Box 2 mass:", dynBox2.GetMass())
println("Sphere mass:", dynSphere.GetMass())
println("Capsule mass:", dynCapsule.GetMass())
s.SetScratchBuffer(4)
for {
s.Simulate(1 / 60.0)
s.FetchResults(true)