x

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"

How can i mantain my object scale when i attach it to a socket?

Hello, i have the MuzzleFlash socket in my rifle with scale 1.0, 1.0, 1.0 and i have an object that i want to attach to it that has scale 0.3, 0.3, 0.3. When i use ObjectToAttach->AttachRootComponentTo(WeaponMesh, "MuzzleFlash", EAttachLocation::SnapToTarget) the Object resets it's scale to the Socket Scale. how can i prevent him from doing that?

Product Version: Not Selected
Tags:
more ▼

asked Oct 21 '14 at 12:48 PM in C++ Programming

avatar image

xlar8or
6k 163 129 305

avatar image xlar8or Oct 21 '14 at 01:13 PM

I did the bAbsoluteScale and it worked :) thanks, can you make it an answer so i mark it as accepted? :)

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

1 answer: sort voted first

You can try call

ObjectToAttach->SetRelativeScale3D(FVector(0.3f,0.3f,0.3f));

after attachment or you can try set bAbsoluteScale on ObjectToAttach before attachment.

more ▼

answered Oct 21 '14 at 12:51 PM

avatar image

Pierdek
2.6k 73 49 131

avatar image theonecalledtom Apr 16 '15 at 09:44 PM

Worked for me. Took me a minute or two before I started looking at the root component rather than the actor for bAbsoluteScale.

avatar image Shempii Jul 03 '18 at 11:50 PM

Yesssss thanks for this.

(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