# Constraint Movement for Spline Point Z Axis

**URL:** <https://forums.unrealengine.com/t/constraint-movement-for-spline-point-z-axis/459591>\
**Category:** Character & Animation\
**Tags:** splinecomponent, unreal-engine, editor, Scripting, question\
**Created:** [December 16, 2019, 12:48pm UTC](https://forums.unrealengine.com/t/constraint-movement-for-spline-point-z-axis/459591 "2019-12-16T12:48:01Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![RowelCaps](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@RowelCaps](https://forums.unrealengine.com/u/RowelCaps)\
**Post date:** [December 16, 2019, 12:48pm UTC](https://forums.unrealengine.com/t/constraint-movement-for-spline-point-z-axis/459591/1 "2019-12-16T12:48:01Z")

</div>

Hello! I’m creating a tool for level designing. which i can build rooms or buiding rapidly using the SplineComponent.  
I want to prohibit the user from setting the ZAxis of the spline points cause it will create problems in the mesh. when they mess with it.

Any advice on how i should approach this? should I set everything in the Constructor?

---

<div class="post-metadata">

**Author:** ![ppchavan001](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@ppchavan001](https://forums.unrealengine.com/u/ppchavan001)\
**Post date:** [December 16, 2019, 3:08pm UTC](https://forums.unrealengine.com/t/constraint-movement-for-spline-point-z-axis/459591/2 "2019-12-16T15:08:14Z")

</div>

in C++ create a spline component child class and override the required functions, You can build your custom algorithm according to your requirements, for that function, there. And use your custom class in your project instead of the default one
