#include <animobject.h>
Inheritance diagram for cganim::AnimObject:
Public Member Functions | |
AnimObject () | |
Default constuctor. Default mass is 1kg, speed 0m/s. | |
gml::Vector3d | GetVelocity () const |
Get object velocity (m/sec). | |
void | SetVelocity (const gml::Vector3d &new_velocity) |
Set new object velocity (m/sec). | |
double | GetMass () const |
Return object mass (kg). | |
void | SetMass (double new_mass) |
Set new object mass (kg). | |
gml::Vector3d | GetColor () const |
Return object color. | |
void | SetColor (const gml::Vector3d &new_color) |
Modify object color. | |
std::string | GetTexture () const |
Return object texture file path. Can be empty. | |
void | SetTexture (const std::string &texture) |
Modify texture path of the object. | |
double | GetSpecularLevel () const |
Return level of specularity for this object, 0 - non-specular, 1 - ideal mirror. | |
void | SetSpecularLevel (double ks) |
Modify level of specularity for this object, 0 - non-specular, 1 - ideal mirror. | |
void | SetMatte (double matte) |
Set new transparency coefficient (0 - fully transparent, 1 - opaque). | |
double | GetMatte () const |
Get transp coefficient (0 - fully transparent, 1 - opaque). |