Description

GetScaledCapsuleHalfHeight multiplies the CapsuleHalfHeight by the lower scale value, even if it is X or Y. Seeing as Half Height should only be related to the Z scale, this does not work out properly if the X or Y scales are lower than the Z, returning lower values than expected.

Regression?: No
This occurred in 4.18

Steps to Reproduce
  1. Open a project
  2. Create a new Actor blueprint
  3. Add a Capsule collision
  4. With the Capsule Collision, called GetScaledCapsuleHalfHeight and set the value to print on BeginPlay
  5. Scale the Capsule collision to 0.1, 0.1, .5
  6. Add an instance of the Blueprint to the level
  7. Press Play
    Result: The Blueprint prints 4.4, a 0.1 scale of the default Capsule Half Height which is 44.
    Expected: The Blueprint prints 22, a 0.5 scale

Have Comments or More Details?

There's no existing public thread on this issue, so head over to Questions & Answers just mention UE-59651 in the post.

2
Login to Vote

Fixed
ComponentUE - Simulation - Physics
Affects Versions4.184.194.20
Target Fix4.21
Fix Commit4435557
Main Commit4450599
Release Commit4435557
CreatedMay 25, 2018
ResolvedOct 8, 2018
UpdatedOct 11, 2018
View Jira Issue