Search in
Sort by:

Question Status:

Search help

  • Simple searches use one or more words. Separate the words with spaces (cat dog) to search cat,dog or both. Separate the words with plus signs (cat +dog) to search for items that may contain cat but must contain dog.
  • You can further refine your search on the search results page, where you can search by keywords, author, topic. These can be combined with each other. Examples
    • cat dog --matches anything with cat,dog or both
    • cat +dog --searches for cat +dog where dog is a mandatory term
    • cat -dog -- searches for cat excluding any result containing dog
    • [cats] —will restrict your search to results with topic named "cats"
    • [cats] [dogs] —will restrict your search to results with both topics, "cats", and "dogs"

Spline Mesh Component Scale

Hi all,

using the Vive, when I spawn a BP actor that contains a spline mesh component (which in turn is assigned a static mesh in that BP) and I set it's start/end/start tangent with the "Set Start and End" node to start at the right-hand-side controller, use that controller's forward vector as start tangent and some other point as end point, I get a spline mesh shaped accordingly (something like the normal arching VR-teleporter beam). All is good.

Set-up as shown on the picture (this is an example set-up for illustration): alt text

However, when I try to adjust the scale of the spline mesh in the BP (so as to make the resulting arch beam thicker for example), the spline mesh in VR gets scaled, but from an origin that I have not been able to determine. In other words, not only is the mesh scaled, it also moves away from the 'spline start' and 'spline end' locations. For example when I apply a scale of 1.05 to the spline mesh in the BP, the actual spline in VR is half a meter offset from my controller.

What is the reason for this? Is it wrong to assume that when I set the scale of the spline mesh that it does that simply based on the origin in the BP itself without any influence of the world location of the BP later in the game? Because after applying the scale in the BP, the spline mesh is scaled correctly in the viewport just as I'd want it, but as soon as the BP is spawned, the spline mesh receives that strange translation in addition to the scale.

Would love to understand this...

Product Version: UE 4.15
more ▼

asked Jul 22 '17 at 03:11 PM in Using UE4

avatar image

83 8 9 20

avatar image John1089 Feb 21 '19 at 09:49 AM

I know this was a while ago but did you ever solve this?

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

1 answer: sort voted first

No. For this particular situation I ended up creating several mesh cylinders with different diameters to switch between whenever I need to work with a different "scale"

more ▼

answered Mar 01 '19 at 10:29 AM

avatar image

41 1 2 10

avatar image John1089 Mar 01 '19 at 10:37 AM

I managed to solve it by using the SetStartScale and SetEndScale functions on the mesh rather than setting the scale directly.

avatar image benhkvr Mar 01 '19 at 10:38 AM

Ah. I'll keep that in mind. Thanks.

(comments are locked)
10|2000 characters needed characters left
Viewable by all users
Your answer
toggle preview:

Up to 5 attachments (including images) can be used with a maximum of 5.2 MB each and 5.2 MB total.

Follow this question

Once you sign in you will be able to subscribe for any updates here

Answers to this question