Colobot
|
Sphere used to detect object collisions. More...
#include <crash_sphere.h>
Public Member Functions | |
CrashSphere (const Math::Vector &pos=Math::Vector(), float radius=0.0f, SoundType _sound=SOUND_NONE, float _hardness=0.45f) | |
Public Attributes | |
Math::Sphere | sphere |
SoundType | sound |
Sound to be played on collision. More... | |
float | hardness |
"Hardness" of the sphere More... | |
Sphere used to detect object collisions.
Math::Sphere CrashSphere::sphere |
Sphere (position + radius) Sphere position is given in either object or world coordinates (see CObject functions for more info)
SoundType CrashSphere::sound |
Sound to be played on collision.
float CrashSphere::hardness |
"Hardness" of the sphere