Get Collision Radius ?
Blitz3D Forums/Blitz3D Beginners Area/Get Collision Radius ?| 
 | ||
| I know there is a way to set the radius for collisions on an entity, but I don't see any functions to get that radius of an item ?  Could this be ? | 
| 
 | ||
| No easy way that I know of. You might try this thread. | 
| 
 | ||
| There are a number of parameters which do not have any retrieval command, only commands to set them.  One which comes up a lot is the lack of commands to retrieve an object's scale. The common (and sometimes infuriating) advice is to use a variable to keep track of the radius you set it to. | 
| 
 | ||
| Or just store the radius when you set it. Edit: Dam it 2 seconds late | 
| 
 | ||
| which brings up the obvious question of, so if you load a mesh, and don't set a collision radius then is the collision radius set to 0, or is it set to the width or depth of the mesh loaded ?  If it is auto-set, then there is no way to get it... I'm speaking of models loaded from drive, not cubes or spheres you create. | 
| 
 | ||
| They have no radius. | 
| 
 | ||
| ewww.. thats not good...  I would have assumed blitz would auto create a collision radius for any model you load.  Okay. | 
| 
 | ||
| The collision raduis is set to 1. But only when you give an entity, an EntityType number. | 
| 
 | ||
| The default radius is always 1, regardless of the size of the model. |