MCPcopy Create free account
hub / github.com/WolfireGames/overgrowth / SetRotation

Method SetRotation

Source/Objects/object.cpp:455–463  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

453}
454
455void Object::SetRotation(const quaternion &trans) {
456 if (IsDifferentEnough(rotation_, trans)) {
457 rotation_ = trans;
458 LOG_ASSERT(!IsNan(rotation_[0]));
459 UpdateTransform();
460 Moved(Object::kRotate);
461 rotation_updated = true;
462 }
463}
464
465void Object::SetTranslationRotationFast(const vec3 &trans, const quaternion &rotation) {
466 bool changed_something = false;

Callers 13

ExecuteMethod · 0.45
ReplaceObjectsMethod · 0.45
GetRotationFunction · 0.45
EndTransformationFunction · 0.45
UpdateTransformToolMethod · 0.45
HandleSunRotateMethod · 0.45
UpdateMethod · 0.45
SetPhysicsTransformMethod · 0.45
PreDrawFrameMethod · 0.45
UpdateMethod · 0.45

Calls 2

IsDifferentEnoughFunction · 0.85
IsNanFunction · 0.85

Tested by

no test coverage detected