Jump to content
  • entries
    2
  • comments
    6
  • views
    3,470

The Basics


kennar

1,573 views

 Share

By way of introduction, I acquired LE2.32 in December but because of work and an ongoing project I have spent essentially no time with the Editor and API since then, consequently this domain is still very new despite regularly visiting the forums. It get's worse; I'm actually not a game player of any kind. Sacrilege? Even so, LE is extremely enticing for basic simulations while incorporating gaming and testing elements into small applications.

 

This blog, will serve as spot for me to post what are undoubtedly novice hurdles. If answers/hints/direction magically appear in the comments that would be very cool.

 

Hurdle #1

 

Having just acquired 3rd party models (e.g., Shanty Town from Arteria3D) I'm at a loss for how to create the physics files. Dragging objects produces the *.phy files however the properties are blank. The same applies when using phygen and obj2phy. My expectation was that switching into "game mode" in the editor would introduce collision detection for those newly added objects.

 

K.

 Share

2 Comments


Recommended Comments

The phy file created automatically in the editor is for static objects, which will be fine for your shanty town models. Any model that you wish to have dynamic physics interaction, you will need to use either phygen or obj2phy.

 

As for getting properties for the models, try adding this to each model's lua script:

require("scripts/class")
class=CreateClass(...)

This will add the common properties that you can modify with the object's property dialog. I would set the shanty town buildings to SCENE in the collision option under the Physics tab.

 

Something that might help you is the Leadwerks User Guide by Aggror. Its a nice resource for new users.

Link to comment
Guest
Add a comment...

×   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.

×
×
  • Create New...