Jump to content

Physics model does not work


Alessandro
 Share

Recommended Posts

Hello,

I made a big rock model, and using phygen.exe I generated a hull-physics model *.phy.

The problem is th editor tell me my rock has physics (activating debug for physics the model seems correct), but I have no collision with OILDRUM (built-in model in LE) and no collision with FPS playern (using "fpscontroller.lua").

I even tried to load the moel using LoadModel from LUA, but I have no collision, no interaction.

 

WEhat's wrong? Please help me!

 

Thank you!

 

EDIT: It seems th model loaded in the editor does not contain any property (properties window is empty).

Edited by Alessandro
Link to comment
Share on other sites

Have you set the collision type? the default is none.

 

Just read your edit you need to create a basic .lua file for it to have properties.

 

simple, double click the main objects icon (not the instance in the scene) when the lua editor opens with a blank page add:

 

require("scripts/class")

local class=CreateClass(...)

 

then save and restart the editor, the instances of that object will now have a properties box.

AMD Bulldozer FX-4 Quad Core 4100 Black Edition

2 x 4GB DDR3 1333Mhz Memory

Gigabyte GeForce GTX 550 Ti OC 1024MB GDDR5

Windows 7 Home 64 bit

 

BlitzMax 1.50 • Lua 5.1 MaxGUI 1.41 • UU3D Pro • MessiahStudio Pro • Silo Pro

3D Coat • ShaderMap Pro • Hexagon 2 • Photoshop, Gimp & Paint.NET

 

LE 2.5/3.4 • Skyline UE4 • CE3 SDK • Unity 5 • Esenthel Engine 2.0

 

Marleys Ghost's YouTube Channel Marleys Ghost's Blog

 

"I used to be alive like you .... then I took an arrow to the head"

Link to comment
Share on other sites

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