Yes. The problem isn’t what you’ve got, it’s how the physics engine processes things. So yes, functions are just code segments you can call if you have the appropriate scope for them. These are concepts you should read up on - the documentation section can help a lot, plus there’s plenty of really good resources for learning Lua. Also, Robert Ierusalimschy has recently published the third edition of Programming in Lua. [import]uid: 8271 topic_id: 36219 reply_id: 143934[/import]