Closed iamteapot422 closed 11 months ago
fps drop is not that strong imo, doesn't have to be solved in this PR, but need an issue.
"Construction doesn't check if object can rotate to the target direction. To solve this issue, it's necessary to implement a list of possible rotations in ICustomGhostRotation." can you provide an example, I don't get it.
" network objects disable themselves after few frames after instatiating for some reason." how can I reproduce that ?
@nsarrazin
@nsarrazin
- The interface has method NextRotation (or smth). And realisations use some kind of allowed rotations, right? Like plenum tiles can only face north, so the list contains only one direction
- Comment ActivateGhosts(); string
You pinged the wrong lad. Lol.
Summary
Implement line (by dragging) and square (by alt+dragging) construction, rewrite ConstructinMenu script, make menu a little wider, increase scroll speed, move GridManager to ConstructionMenu. You can both drag construct and replace at the same time.
https://github.com/RE-SS3D/SS3D/assets/77565416/81b578a8-0dc3-487e-9dda-f90b1cae8e18
PR checklist
Networking checklist
Related issues/PRs
closes #1056
Known issues:
Large fps drops while constructing a lot of objects. This is because ghosts spawn and despawn at correct positions each time second corner of drag construction changes. Can be solved by moving existing objects to new positions.
Construction doesn't check if object can rotate to the target direction. To solve this issue, it's necessary to implement a list of possible rotations in ICustomGhostRotation.
Ghosts experience some flickering, because network objects disable themselves after few frames after instatiating for some reason.