You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Issue description: I'm trying to make a game where the gravity changes during runtime. This does not work as expected.
Changing the gravity in _Ready() works fine
Changing the gravity in _Process(float delta) just slows the default gravity vector
Changing the gravity in _PhysicsProcess(float delta) freezes the gravity:
public override void _Ready()
{
// Works as expected
Vector3 lNewGravityVec3 = new Vector3(0,1,0);
PhysicsServer.AreaSetParam(GetWorld().Space, PhysicsServer.AreaParameter.GravityVector, lNewGravityVec3);
}
public override void _Process(float delta)
{
// Just 'slows' the gravity
Vector3 lNewGravityVec3 = new Vector3(0,1,0);
//PhysicsServer.AreaSetParam(GetWorld().Space, PhysicsServer.AreaParameter.GravityVector, lNewGravityVec3);
}
public override void _PhysicsProcess(float delta) {
// Freezes the gravity
Vector3 lNewGravityVec3 = new Vector3(0,1,0);
//PhysicsServer.AreaSetParam(GetWorld().Space, PhysicsServer.AreaParameter.GravityVector, lNewGravityVec3);
}
This only happens with Bullet. GodotPhysics works.
Calinou
changed the title
Changing gravity does not work as expected
Changing gravity in BulletPhysics does not work as expected
Apr 10, 2020
Calinou
changed the title
Changing gravity in BulletPhysics does not work as expected
Changing 3D gravity in BulletPhysics does not work as expected
Apr 10, 2020
pouleyKetchoupp
changed the title
Changing 3D gravity in BulletPhysics does not work as expected
[Bullet] Changing 3D gravity in BulletPhysics does not work as expected
Jan 15, 2021
Godot version: 3.2 RC 2
OS/device including version: Windows 10 / PC
Issue description: I'm trying to make a game where the gravity changes during runtime. This does not work as expected.
Minimal reproduction project:
Physics Test.zip
The text was updated successfully, but these errors were encountered: