October 3, 200223 yr I would like to make a small gmax object "crashable", but found when an object gets about 2.5m square this does not happen.I can program in c++ and would like to know if I can download a document containg the asm/bgl syntax to see if I can adjust this in the asm file.Thanks for any help David
October 4, 200223 yr I found some info on this and fixed it. When an object gets to somewhere below 3 sqm a line changes in the asm code from "255"s to "254"s. I dont know what the syntax for the "OCTREE_NODE" line is, but it works.model_crash label BGLCODE BGL_CRASH_START model_crash_end, 3 BGL_CRASH_OCTTREE crash_end_1 dw CRASH_FLAG_OBJECT ; crash type dw 1 ; nodes used real4 -2.006350,0.000000,-1.998914 ; Box x,y,z real4 4.000200,4.000200,4.000200 ; Box w,h,d dw 1, 1, 1, 1, 1, 1, 1, 1 ; base offset into node table, one for each top-level branch ; So if you take branch 2 (count from 0), you add 1 to indices you encounter on that branch ; Nodes (254=empty 255=full, else an index into branch) OCTTREE_NODE 254, 254, 254, 254, 254, 254, 254, 254 ; node 0crash_end_1 label wordmodel_crash_end label word BGL_RETURN+++++++++Change to:OCTTREE_NODE 255, 255, 255, 255, 255, 255, 255, 255 ;
Create an account or sign in to comment