# How to make empty transforms?

**URL:** <https://forums.unrealengine.com/t/how-to-make-empty-transforms/476904>\
**Category:** C++\
**Tags:** raycasting, child-actors, unreal-engine, UE4, CPP, question\
**Created:** [January 7, 2021, 11:50am UTC](https://forums.unrealengine.com/t/how-to-make-empty-transforms/476904 "2021-01-07T11:50:22Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![DeltaMike1010](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@DeltaMike1010](https://forums.unrealengine.com/u/DeltaMike1010)\
**Post date:** [January 7, 2021, 11:50am UTC](https://forums.unrealengine.com/t/how-to-make-empty-transforms/476904/1 "2021-01-07T11:50:22Z")

</div>

I am a Unity user transitioning to UE4. In unity you can just place empty gameobjects(with just transform component) as child of other objects and use them as origins for raycasts. I wish to do the same, but can’t seem to wrap my head around about this. How can I make such empty objects which then I can refer in code somehow to use their transforms to do whatever? Any help would be really appreciated. Thanks 🙂

---

<div class="post-metadata">

**Author:** ![Kehel18](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Kehel18](https://forums.unrealengine.com/u/Kehel18)\
**Post date:** [January 7, 2021, 2:09pm UTC](https://forums.unrealengine.com/t/how-to-make-empty-transforms/476904/2 "2021-01-07T14:09:24Z")

</div>

Hi there! There are many approaches. Can you be more specific? For example

- You can use property of FTransform type and store it in UProperty. To use it you need to apply stored value to transform of owning Actor
- You can just add sockets for Skeletal meshes (socket is added to bone and its relative orientation is saved during animation or|and movement) and Static Meshes (socket is added to pivot and its relative orientation is saved during movement). You can get Socket transform after that by Socket Name
- You can just use USceneComponent as empty Transform, configure it’s relative orientation and use
- You can use empty Actor, because Actor has USceneComponent by default and parent it to other Actor (in fact all Actor attachments are done between Actor’s root components)

---

<div class="post-metadata">

**Author:** ![DeltaMike1010](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@DeltaMike1010](https://forums.unrealengine.com/u/DeltaMike1010)\
**Post date:** [January 7, 2021, 3:01pm UTC](https://forums.unrealengine.com/t/how-to-make-empty-transforms/476904/3 "2021-01-07T15:01:25Z")

</div>

Wow, those all seem legit options. Well, I am making a vehicle in UE. And I was starting with suspension, for which I want to raycasts for each wheel going down to ground. Now I just want those points to be configurable, in a way, for our designer to tweak. And what better way than an empty transform, I said to myself, and here we are.

---

<div class="post-metadata">

**Author:** ![Kehel18](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Kehel18](https://forums.unrealengine.com/u/Kehel18)\
**Post date:** [January 9, 2021, 3:08pm UTC](https://forums.unrealengine.com/t/how-to-make-empty-transforms/476904/4 "2021-01-09T15:08:11Z")

</div>

In common, vehicle are rather complex things in the sense of Phy simulation, num of parts, control and movement. So, choice should be made on the base of these many details.

---

<div class="post-metadata">

**Author:** ![MaxBotvinev](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/maxbotvinev/32/975035_2.png) [@MaxBotvinev](https://forums.unrealengine.com/u/MaxBotvinev)\
**Post date:** [April 21, 2021, 3:45pm UTC](https://forums.unrealengine.com/t/how-to-make-empty-transforms/476904/5 "2021-04-21T15:45:32Z")

</div>

For anyone with same dilemma: try to use “Scene Component”.  
Add Component-\>Scene.
