90 if (type ==
"ElevatorCar")
92 else if (type ==
"Floor")
94 else if (type ==
"Shaft Level")
96 else if (type ==
"Stairwell Level")
98 else if (type ==
"SBS")
106 if (type ==
"ElevatorCar")
108 else if (type ==
"Floor")
110 else if (type ==
"Shaft Level")
112 else if (type ==
"Stairwell Level")
114 else if (type ==
"SBS")
249 bool use_collider =
true;
251 use_collider =
false;
253 mesh =
new MeshObject(
this,
GetName(), 0,
"", meshname, max_render_distance, scale_multiplier, use_collider);
ElevatorCar * IsInElevator(const Vector3 &position, bool camera=false)
void SetMaterial(const std::string &material)
void EnablePhysics(bool value, Real restitution=0, Real friction=0, Real mass=0)
const std::string & GetName()
virtual void SetRotation(const Vector3 &rotation)
virtual void Move(const Vector3 &vector, Real speed=1.0)
virtual Vector3 GetPosition(bool relative=false)
void SetValues(const std::string &type, const std::string &name, bool is_permanent, bool is_movable=true)
void ChangeParent(Object *new_parent)
void Init(bool children=true)
void EnableLoop(bool value)
const std::string & GetType()
Primitive(Object *parent, const std::string &name)
void OnClick(Vector3 &position, bool shift, bool ctrl, bool alt, bool right)
void SetTexture(const std::string &texture)
bool Attach(const std::string &meshname, const Vector3 &position, const Vector3 &rotation, Real max_render_distance=0, Real scale_multiplier=1, bool enable_physics=false, Real restitution=0, Real friction=0, Real mass=0)
Elevator * GetElevator(int number)
Floor * GetFloor(int number)
Primitive * AddPrimitive(const std::string &name)
int GetFloorNumber(Real altitude, int lastfloor=0, bool checklastfloor=false)
void RemovePrimitive(Primitive *prim)
#define SBS_PROFILE(name)