GroundController GroundOffset is not relative to the ControllerManager's UpDirection

The issue
When configuring a ControllerManager for a model using GroundController, if you change the UpDirection value to other than Vector3.yAxis, the model still offsets vertically along the world Y-axis (Vector3.yAxis), rather then the controller’s defined UpDirection. This results in clipping when the model stands on a surface whose normal is not aligned with Vector3.yAxis.

System information
CPU: AMD Ryzen 5 3600 6-Core Processor
GPU: NVIDIA GeForce RTX 3060
Memory: 24,0 GB

Expected behavior

The behavior I expected is for the GroundController to offset the model vertically relative to the Controller’s UpDirection, not the world Y-axis.

1 Like

Documentation states that GroundOffset is “The target distance above the ControllerManager.GroundSensor.HitPosition

Its independent from UpDirection, which only sets the orientation of the root part. The default ground sensor behavior is aligned to the world Y axis. In your example, the HitPosition is still at that bottom part. You likely want to have a ground sensor that is aligned to UpDirection.

1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.