# Can a transformation be applied to drawLines() or drawLineArrays()?

**URL:** <https://forum.playcanvas.com/t/can-a-transformation-be-applied-to-drawlines-or-drawlinearrays/29411>\
**Category:** Help & Support\
**Created:** [January 25, 2023, 10:49am UTC](https://forum.playcanvas.com/t/can-a-transformation-be-applied-to-drawlines-or-drawlinearrays/29411 "2023-01-25T10:49:22Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![simmania](https://forum.playcanvas.com/letter_avatar_proxy/v4/letter/s/45deac/32.png) [@simmania](https://forum.playcanvas.com/u/simmania)\
**Post date:** [January 25, 2023, 10:49am UTC](https://forum.playcanvas.com/t/can-a-transformation-be-applied-to-drawlines-or-drawlinearrays/29411/1 "2023-01-25T10:49:23Z")

</div>

When I draw lines using drawLines() or drawLineArrays(), is it possible to apply a transformation? Or do I have to transform each point myself using some transformation matrix math?

---

<div class="post-metadata">

**Author:** ![mvaligursky](https://forum.playcanvas.com/user_avatar/forum.playcanvas.com/mvaligursky/32/11681_2.png) [@mvaligursky](https://forum.playcanvas.com/u/mvaligursky)\
**Post date:** [January 25, 2023, 11:31am UTC](https://forum.playcanvas.com/t/can-a-transformation-be-applied-to-drawlines-or-drawlinearrays/29411/2 "2023-01-25T11:31:22Z")

</div>

Transform them yourself, those always render in the world space.
