Skip to content

editor: elements have physics when switching to freecam mode while grabbing the element #640

Open
@q8X

Description

@q8X

Which resource(s) have this problem?
move_freecam

Describe the bug
as in title, when you grab an object in freecam mode and you're close to water or anything collidable such as players/vehicles, it might start spinning or moving on its own

this can happen because of this line, removing this line fixes the issue

setElementVelocity(selectedElement,0,0,0) --!w

this bug been around for 17 years, and its known bug I'm not sure why this was added, its not even in move_cursor that's why it doesn't happen there

To Reproduce

  1. spawn 3458
  2. rotate the object
  3. place it on the water
  4. switch to freecam mode
  5. copy the object
  6. move the object using A or D then grab it while facing in the water
  7. see object spins

Expected behavior
object shouldn't spin or move

Version
Multi Theft Auto v1.6-release-23196

Additional context

8mb.video-Cj6-CruyFItm.mp4

https://www.youtube.com/watch?v=UXMcEXorgiM

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions