RotateObjectTest

March 9, 2022 ยท View on GitHub

from tdw.add_ons.model_verifier.model_tests.rotate_object_test import RotateObjectTest

These tests add an object and then rotate it.


Class Variables

VariableTypeDescriptionValue
OBJECT_IDintThe ID of the object.0
DELTA_THETAintRotate by this many degrees per frame.15
PINKtupleThe Unity pink color.(255, 0, 255)
LOOK_ATDict[str, float]Look at this position.{"x": 0, "y": 0.5, "z": 0}
AVATAR_POSITIONDict[str, float]The position of the avatar.{"x": 1.75, "y": 0.5, "z": 0}

Functions

__init__

RotateObjectTest(record)

ParameterTypeDefaultDescription
recordModelRecordThe model record.

start

self.start()

Returns: A list of commands to start the test.

on_send

self.on_send(resp)

ParameterTypeDefaultDescription
respList[bytes]The response from the build.

Returns: A list of commands to continue or end the test.