Jump to content



Recommended Posts


and /showcol. You can adjust your collisions then.

It has to be dynamic.

You can use bounding box instead of colshapes then

Thanks. I'm write that code:

local x1, y1, z1, x2, y2, z2 = getElementBoundingBox(obiekt)  
local x,y,z = getElementPosition(obiekt) 
local x1 = x - x1 
local y1 = y - y1 
local z1 = z - z1 
local colshape = createColCuboid(x1, y1, z1, x2, y2, z2) 
outputChatBox(x2.." - "..y2.." - "..z2) 
setElementData(obiekt, "colshape", colshape) 
attachElements(obiekt, colshape, 0, 0, 2) 

but the colshape is too small, and when object is move, the colshape is in its place. Can You help me?

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    No registered users viewing this page.

  • Create New...