Get Collision Radius ?

Blitz3D Forums/Blitz3D Beginners Area/Get Collision Radius ?

StOrM3(Posted 2004) [#1]
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 ?


electronin(Posted 2004) [#2]
No easy way that I know of. You might try this thread.


jhocking(Posted 2004) [#3]
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.


eBusiness(Posted 2004) [#4]
Or just store the radius when you set it.
Edit: Dam it 2 seconds late


StOrM3(Posted 2004) [#5]
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.


eBusiness(Posted 2004) [#6]
They have no radius.


StOrM3(Posted 2004) [#7]
ewww.. thats not good... I would have assumed blitz would auto create a collision radius for any model you load. Okay.


Ross C(Posted 2004) [#8]
The collision raduis is set to 1. But only when you give an entity, an EntityType number.


jhocking(Posted 2004) [#9]
The default radius is always 1, regardless of the size of the model.