Skip to content

QoL Physics Simulator Component #4110

@Nietod

Description

@Nietod

The Physics Simulator is used when using additive levels in a project.

The problem is that its location is in the Examples folder which normally gets deleted for final builds.

Remove the Examples, Presets, and Hosting folders, expand the Transports folder and screenshot what's in that

Currently the solution is to create an own custom copy of it.

But what if you import Mirror without the examples?
The Docs say nothing about where the scripts location is or that you should create a custom copy.

In each subscene, add an empty game object, and add a Physics Simulator component to that. Since additive scenes will be loaded on the server as "physics scenes" Unity doesn't simulate physics for them, so this component does that for you in each subscene.

So I guess either update the docs to be more precise or move it out of the Examples folder to remove the silent runtime dependency.

But what about backward compatibility?
Leave it in Examples and create a new copy for the users within Core. Maybe seperate between 2D and 3D as two unique Components which would fit Unitys Collider2D or RigidBody2D setup.

Just small and simple QoL. Happy with any sort of solution, just stating some options.

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