Jump to content

whiterabbit

Members
  • Posts

    40
  • Joined

  • Last visited

Everything posted by whiterabbit

  1. I tried to do: local DateRan = os.date("%Y.%m.%d.%H.%M.%S") but got attempt to index global 'os' (a nil value) I did a search and couldn't see an obvious alternative.
  2. Yep, I'm already going to be doing those things in different situations so it's not really a simple option. Gravity is disabled on the world and the ball applies a force to itself to simulate gravity so I can change the direction of gravity (not sure if you can change the gravity direction for the entire world?). I'll try and work around it for now.
  3. Although doing it manually doesn't give the ability to have less than normal bounce. EDIT: Sorry for double post. I'm used to posts auto-merging together on another forum.
  4. Thanks, I thought that might be the case. I just didn't want to have to do it myself.
  5. I have a model of a sphere with a collision mesh imported into Leadwerks and I wanted to control how 'bouncy' it was. Did a google search and came across the functions SetElasticity and SetSoftness (seems like they were called SetBodyElasticity and SetBodySoftness in older versions). The current docs don't mention these functions, or at least not on Entity, and when I try to call them they obviously don't exist. Does anyone know if they've been renamed, not available to Lua, removed for some reason? Just a few things I found: http://www.leadwerks.com/werkspace/topic/2546-balls/ (This has a Lua script that calls SetElasticity which makes me think it did exist at some point) http://www.leadwerks.com/werkspace/page/Documentation/le2/_/command-reference/bodies/setbodyelasticity-r58 (Old docs) http://www.leadwerks.com/werkspace/topic/4683-problem-with-collision-callback/ (C++ but calls SetElasticity)
×
×
  • Create New...