Sign in to follow this  
Guest GerrishGray

Crash detection and asm/bgl syntax

Recommended Posts

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

Share this post


Link to post
Share on other sites
Help AVSIM continue to serve you!
Please donate today!

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 ;

Share this post


Link to post
Share on other sites

HiNow there's a small world (and no puns about 'less than 3m

Share this post


Link to post
Share on other sites

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
Sign in to follow this