Skip to content

When creating new Extended3D Objects I get a weird physics behavior #242

Description

@finkton1

When I create new objects during runtime, it seems like every 3d object will share the same rotation in simulation.

Why do they share the same physics body? Should they not be separate bodies for each new instance of Extended3D object?

I am using "this.physics.add.cylinder" in headless mode

Any help is appreciated - been stuck on it for days.

Example screenshot : https://ibb.co/GcBNCMv

As you can see all objects are rotating in real time with same rotation.... strange.

edit: Looks like I was using object.body.rotation and sending that to the client. It should be object.rotation instead for local rotation.
What is the difference between the two?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions