nanos-world / issues

Issue Tracker for nanos world
9 stars 1 forks source link

Disabling + re-enabling gravity on a character reset it's gravity scale #995

Closed Timmy-the-nobody closed 9 months ago

Timmy-the-nobody commented 9 months ago

Prerequisites

Your Environment

Description

When calling char:SetGravityEnabled, the character's gravity scale will be set to the default value 1.0 image

Steps to reproduce the behavior

After doing that the gravity scale is reset to the default value (1)

Expected behavior

The gravity scale set with char:SetGravityScale shouldn't be altered by char:SetGravityEnabled, or it should at least recover the value previously set once the gravity is re-enabled

Actual behavior

When disabling and enablig the gravity on a character, it's gravity scale will always be 1.0 even if we've set it before to be something else

gtnardy commented 9 months ago

Thanks, fixed for next update!

Timmy-the-nobody commented 9 months ago

Just tried with the last update, it's still broken Now when calling SetGravityEnabled(false) then SetGravityEnabled(true) the gravity scale isn't reset to 1 but to 0 (instead of getting the gravity scale previously set), and GetGravityEnabled will always return false in this scenario

image