# Does boxtrace work the same as linetrace or is it broken?

**URL:** <https://forums.unrealengine.com/t/does-boxtrace-work-the-same-as-linetrace-or-is-it-broken/1626231>\
**Category:** Blueprint\
**Tags:** UE-5, unreal-engine, Blueprint, question\
**Created:** [January 19, 2024, 1:54pm UTC](https://forums.unrealengine.com/t/does-boxtrace-work-the-same-as-linetrace-or-is-it-broken/1626231 "2024-01-19T13:54:05Z")\
**Posts on this page:** 1\
**Showing post:** 17

<div class="post-metadata">

**Author:** ![Everynone](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/everynone/32/1135017_2.png) [@Everynone](https://forums.unrealengine.com/u/Everynone)\
**Post date:** [January 19, 2024, 2:33pm UTC](https://forums.unrealengine.com/t/does-boxtrace-work-the-same-as-linetrace-or-is-it-broken/1626231/17 "2024-01-19T14:33:22Z")

</div>

> [@Yaklakootmaa2](#):
>
> I make this box extent once in construction script

And that’s another _potential_ trap UE sets for you. Due to the way comps are re-instantiated, we cannot always rely on their data in the CS. I [learnt it the hard way](https://forums.unrealengine.com/t/why-does-the-construction-script-refuse-to-report-component-offsets/464489) a couple of ways ago. The entry is in the bug DB but is flagged as Won’t Fix. Acknowledged but _Waived_.

It may work here & there but through the sheer force of habit I set the value once on Begin Play and only update it when the size actually changes - let’s say you added a giant cargo hold that pokes out to the spaceship (?).

* * *

In short:

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/d/4/a/d4a92092b5ffe4caf830aa5e7855470489936a22.jpeg)

The component _forgets_ where it is, for example.

---

_[View the full topic](https://forums.unrealengine.com/t/does-boxtrace-work-the-same-as-linetrace-or-is-it-broken/1626231)._
