Skip to content
View in the app

A better way to browse. Learn more.

The AVSIM Community

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Crash detection and asm/bgl syntax

Featured Replies

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

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 ;

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

Create an account or sign in to comment

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.