Skip to content

Bug: trigger_gravity and trigger_vphysics_motion use different vectors for their directional gravity keyvalues #1742

@Klunkyone

Description

@Klunkyone

Describe the bug

Image Image

For trigger_vphysics_motion, the default directional gravity keyvalue of 0 0 0 translates to downward gravity, whereas 90 0 0 (correctly) signifies a downward gravity vector for trigger_gravity and follows conventional rules for pitch, yaw, roll that all entities adhere to.

A new keyvalue for trigger_vphysics_motion should be created that represents an actual gravity vector rather than a transformation of the gravity direction. This keyvalue should be the same one used for trigger_gravity for parity.

To Reproduce

  1. Create trigger_vphysics_motion with all default properties, check flag for physics objects
  2. Default downward gravity vector is 0 0 0
  3. Test ingame, gravity points down (Nooo! 0 0 0 isn't down!!)
  4. Reflect on your mistakes and push a fix for this issue to staging immediately

Issue Map

.

Expected Behavior

Using 90 0 0 as a directional gravity vector on trigger_vphysics_motion should translate to a downward gravity vector

Operating System

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type: BugThis is a problem with something that should be working one way, but isn't.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions