3#include "mc/_HeaderOutputPredefine.h"
6#include "mc/deps/core/utility/optional_ref.h"
7#include "mc/deps/shared_types/legacy/actor/ActorLocation.h"
23namespace GetAttachPositionUtility {
26MCAPI ::Vec3 _getBaseAttachPoint(
27 ::SharedTypes::Legacy::ActorLocation location,
28 ::Vec3
const& interpolatedPosition,
29 ::AABBShapeComponent
const& aabbShapeComponent,
30 ::ActorRotationComponent
const& actorRotationComponent,
31 ::OffsetsComponent
const& offsetsComponent,
32 ::optional_ref<::PassengerRenderingRidingOffsetComponent const> ridingOffset,
33 ::optional_ref<::VanillaOffsetComponent const> vanillaOffsetComponent,
34 float actorHeadRotation,
38MCAPI ::std::optional<::Vec3> getAttachPosition(
39 ::StrictEntityContext
const& entity,
40 ::GetAttachPositionViews
const& views,
41 ::SharedTypes::Legacy::ActorLocation location,
42 ::Vec3
const& interpolatedPosition
45MCAPI ::Vec3 getNonPassengerAttachPos(
46 ::StateVectorComponent
const& stateVector,
47 ::optional_ref<::ActorHeadRotationComponent const> headRotation,
48 ::AABBShapeComponent
const& aabbShape,
49 ::ActorRotationComponent
const& actorRotation,
50 ::OffsetsComponent
const& offsets,
51 ::optional_ref<::VanillaOffsetComponent const> vanillaOffset,
52 ::SharedTypes::Legacy::ActorLocation location,
56MCAPI ::Vec3 getPassengerAttachPos(
57 ::StrictEntityContext
const& entity,
58 ::GetAttachPositionViews
const& views,
59 ::SharedTypes::Legacy::ActorLocation location,
63MCAPI ::std::optional<::Vec3> tryGetPassengerAttachPos(
64 ::StrictEntityContext
const& entity,
65 ::GetAttachPositionViews
const& views,
66 ::SharedTypes::Legacy::ActorLocation location,
Definition StrictEntityContext.h:14
Definition AABBShapeComponent.h:9
Definition ActorHeadRotationComponent.h:5
Definition ActorRotationComponent.h:8
Definition GetAttachPositionViews.h:5
Definition OffsetsComponent.h:8
Definition PassengerRenderingRidingOffsetComponent.h:8
Definition StateVectorComponent.h:8
Definition VanillaOffsetComponent.h:8