Jump to content

collison problem?


dennis
 Share

Recommended Posts

the problem is with the PHY file that you have in that zip file... I dont know how that was generated, but you can see that physics body is not located any where near the visual mesh. Delete the PHY file, and reopen the Editor, drag the rock into the scene and it will create the PHY file for you.

post-14-0-21340700-1315313983_thumb.jpg

 

to see the problem yourself, go to Tools>Options...>Display and click the Show Physics option

 

EDIT-- once you get that straightened out then follow Roland's advice with the script.. I like to use this script for basic scenery items that has the collision property already set, so I don't have to open the property dialog...

 

require("scripts/class")
require("scripts/constants/collision_const")
local class=CreateClass(...)

function class:CreateObject(model)
local object=self.super:CreateObject(model)

object.model:SetKey("collisiontype", COLLISION_SCENE)

end

Win7 64bit / Intel i7-2600 CPU @ 3.9 GHz / 16 GB DDR3 / NVIDIA GeForce GTX 590

LE / 3DWS / BMX / Hexagon

macklebee's channel

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