January 15, 2021, 06:05:09 PM

Author Topic: [bb] B3D Model Hierarchy by Techlord [ 1+ years ago ]  (Read 1329 times)

Offline BlitzBot

  • Jr. Member
  • **
  • Posts: 1
[bb] B3D Model Hierarchy by Techlord [ 1+ years ago ]
« on: June 29, 2017, 12:28:43 AM »
Title : B3D Model Hierarchy
Author : Techlord
Posted : 1+ years ago

Description : Recursive B3D Model Hierarchy Function. Can be used to create list of 3D Model hierarchy pivots.

Code :
Code: BlitzBasic
  1. model%=LoadAnimMesh("model.b3d")
  2. b3dhierarchy(model%)
  3.  
  4. Function b3dhierarchy(parent%)
  5.         children%=CountChildren(parent%)
  6.         For loop = 1 To children%
  7.                 child%=GetChild (parent%,loop)
  8.                 Print EntityName$(child%);<-- do something w/ child% here.
  9.                 b3dhierarchy(child%)
  10.         Next
  11. End Function


Comments : none...

 

SimplePortal 2.3.6 © 2008-2014, SimplePortal