Skip to content

Update world offset when character entity moves away from origin #34

@dyfios

Description

@dyfios

Is your feature request related to a problem? Please describe.
Currently, the world offset in StraightFour/Assets/StraightFour/World.cs does not update when a character entity moves a significant distance from the world origin. This can lead to issues with floating-point precision and gameplay experience as the character moves further from the origin.

Describe the solution you'd like
Implement logic to monitor the distance of a provided character entity from the world origin. When the entity moves beyond a certain threshold, automatically update the world offset in World.cs to recenter the world around the character. This will help maintain precision and consistent gameplay.

Describe alternatives you've considered

  • Manually triggering a world offset update via user input.
  • Updating the offset only during specific events (e.g., teleportation).

Additional context
This feature will ensure better precision and stability for entities that travel far from the origin, enhancing the overall game experience.

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request
No fields configured for Feature.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions