# TransformNode.rotationQuaternion does not default to null

**URL:** <https://forum.babylonjs.com/t/transformnode-rotationquaternion-does-not-default-to-null/471>\
**Category:** Bugs\
**Created:** [December 28, 2018, 3:38am UTC](https://forum.babylonjs.com/t/transformnode-rotationquaternion-does-not-default-to-null/471 "2018-12-28T03:38:44Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Nathan\_Miller](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/nathan_miller/32/252_2.png) [@Nathan\_Miller](https://forum.babylonjs.com/u/Nathan_Miller)\
**Post date:** [December 28, 2018, 3:38am UTC](https://forum.babylonjs.com/t/transformnode-rotationquaternion-does-not-default-to-null/471/1 "2018-12-28T03:38:44Z")

</div>

Not sure if this is an actual bug or if the comment needs to be updated, but TransformNode.rotationQuaternion does not default to null like the comment says.

The comment for TransformNode.rotationQuaternion says:

_Gets or sets the rotation Quaternion property : this a Quaternion object defining the node rotation by using a unit quaternion (null by default)._

_If set, only the rotationQuaternion is then used to compute the node rotation (ie. node.rotation will be ignored)_

In this example it is not null and is actually undefined: [Babylon.js Playground](https://www.babylonjs-playground.com/#1K1BPT)

I am interested in getting started with contributing to Babylon, so if it’s a bug I would be willing to fix the issue to get my feet wet with contributing.

---

<div class="post-metadata">

**Author:** ![Deltakosh](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/deltakosh/32/26635_2.png) [@Deltakosh](https://forum.babylonjs.com/u/Deltakosh)\
**Post date:** [December 28, 2018, 7:36am UTC](https://forum.babylonjs.com/t/transformnode-rotationquaternion-does-not-default-to-null/471/2 "2018-12-28T07:36:19Z")

</div>

This is a documentation issue actually we should have said null OR undefined

Fancy doing a PR?

---

<div class="post-metadata">

**Author:** ![Nathan\_Miller](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/nathan_miller/32/252_2.png) [@Nathan\_Miller](https://forum.babylonjs.com/u/Nathan_Miller)\
**Post date:** [December 28, 2018, 9:18pm UTC](https://forum.babylonjs.com/t/transformnode-rotationquaternion-does-not-default-to-null/471/3 "2018-12-28T21:18:55Z")

</div>

Sure! I will follow the guide and get one out.
