Jump to content

Lua collision callback


Rick
 Share

Recommended Posts

Thought I'd give this one another go. Can we get a way to specify a Lua method as a collision callback for bodies we create from Lua? This can lead to a huge amount of gameplay and truly benefit people here. Just look at all the new people asking how LE works and will it work for them. A decent number are asking about Lua. They expect triggers to be available. It's a very basic gameplay element. Distance & a number of different model shapes just doesn't cut it in my, and a few others, views. This can't be that hard to implement.

Link to comment
Share on other sites

Agreed. Instead of a function pointer, the Lua routine can take a string name, so it will be like this:

 

SetEntityCallback(entity, ENTITYCALLBACK_COLLISION, "MyCollisionFunction")

My job is to make tools you love, with the features you want, and performance you can't live without.

Link to comment
Share on other sites

  • 2 months later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...