MCPcopy Create free account
hub / github.com/20tab/UnrealEnginePython / test_rotation

Method test_rotation

tests.py:28–33  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

26 self.assertEqual(location, (1, 1, 1))
27
28 def test_rotation(self):
29 self.actor.set_actor_rotation(17, 22, 30)
30 roll, pitch, yaw = self.actor.get_actor_rotation()
31 self.assertTrue(17 - roll < 0.01)
32 self.assertTrue(22 - pitch < 0.01)
33 self.assertTrue(30 - yaw < 0.01)
34
35 def test_scale(self):
36 self.actor.set_actor_scale(3, 5, 7)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected