@@ -142,9 +142,9 @@ class Entity
142
142
143
143
/* *
144
144
* Getter method for the entity's rotation attribute
145
- * @return the entity's rotation as a float
145
+ * @return the entity's rotation as a Vec3
146
146
*/
147
- float GetRotation () const ;
147
+ const Vec3& GetRotation () const ;
148
148
149
149
/* *
150
150
* Getter method for the entity's scale attribute
@@ -159,6 +159,13 @@ class Entity
159
159
*/
160
160
const Xform& GetTransform () const ;
161
161
162
+ /* *
163
+ * Getter method for the entity's transform
164
+ * @return a reference to the entity's
165
+ * transform values
166
+ */
167
+ Xform& GetTransform ();
168
+
162
169
/* *
163
170
* Getter method for the entity's z-index attribute
164
171
* @return the entity's z-index as an int
@@ -176,26 +183,32 @@ class Entity
176
183
*/
177
184
void SetIndex (GenerationalIndex idx);
178
185
186
+ /* *
187
+ * Setter method for the entity's transform
188
+ * @param xform - a transform to set to the entity
189
+ */
190
+ void SetTransform (const Xform& xform);
191
+
179
192
/* *
180
193
* Setter method for the entity's position attribute
181
- * @param position - a Vector3 to set as the entity's
194
+ * @param position - a Vec3 to set as the entity's
182
195
* position
183
196
*/
184
197
void SetPosition (const Vec3& position);
185
198
186
199
/* *
187
200
* Setter method for the entity's rotation attribute
188
- * @param rotation - a float to set as the entity's
201
+ * @param rotation - a Vec3 to set as the entity's
189
202
* rotation
190
203
* @note While negative rotations are accepted,
191
204
* rotations beyond 360 degrees are
192
205
* automatically wrapped
193
206
*/
194
- void SetRotation (float rotation);
207
+ void SetRotation (const Vec3& rotation);
195
208
196
209
/* *
197
210
* Setter method for the entity's scale attribute
198
- * @param scale - a Vector3 to set as the entity's
211
+ * @param scale - a Vec3 to set as the entity's
199
212
* scale
200
213
*/
201
214
void SetScale (const Vec3& scale);
0 commit comments