mommytellme Posted February 9, 2015 Share Posted February 9, 2015 Hi there! I create a simple physics, I would like to create around the object colshape to detect a collision, but do not know how to detect where to start to create, and where to end colshape. Thanks in advance for your help and sorry for my poor English Link to comment
Gallardo9944 Posted February 9, 2015 Share Posted February 9, 2015 setDevelopmentMode and /showcol. You can adjust your collisions then. Link to comment
mommytellme Posted February 9, 2015 Author Share Posted February 9, 2015 setDevelopmentMode and /showcol. You can adjust your collisions then. It has to be dynamic. Link to comment
Gallardo9944 Posted February 9, 2015 Share Posted February 9, 2015 setDevelopmentMode and /showcol. You can adjust your collisions then. It has to be dynamic. You can use bounding box instead of colshapes then Link to comment
mommytellme Posted February 9, 2015 Author Share Posted February 9, 2015 setDevelopmentMode 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
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now