# Rotation of connected object

**URL:** <https://forum.babylonjs.com/t/rotation-of-connected-object/12043>\
**Category:** Questions\
**Created:** [June 28, 2020, 7:12pm UTC](https://forum.babylonjs.com/t/rotation-of-connected-object/12043 "2020-06-28T19:12:52Z")\
**Posts on this page:** 1\
**Showing post:** 7

<div class="post-metadata">

**Author:** ![JohnK](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/johnk/32/26764_2.png) [@JohnK](https://forum.babylonjs.com/u/JohnK)\
**Post date:** [July 1, 2020, 8:01am UTC](https://forum.babylonjs.com/t/rotation-of-connected-object/12043/7 "2020-07-01T08:01:03Z")

</div>

@dhruv_er sorry for the delay in my answer, got caught up in other things.

> [@RaananW](#):
>
> It feels like a trigonometry question on a math test

Maybe with a little re-thinking it is not a trigonometry question, provided I have the correct understanding of your requirements @dhruv_er…

Taking a slightly different approach.

Let O and A be fixed points in space. Let P be any point such that the distance from O to P ≤ r for r a positive number. Extend a line from O through P to a point B such that |OB| = r. Find B.

Draw the lines OA and AB. In Babylon.js use cylinders for lines.

> **[Babylon.js Playground](https://www.babylonjs-playground.com/#0RYA8I)**
>
> Babylon.js playground is a live editor for Babylon.js WebGL 3D scenes

---

_[View the full topic](https://forum.babylonjs.com/t/rotation-of-connected-object/12043)._
