#Floating Origins for large maps with medium to large characters

1 messages · Page 1 of 1 (latest)

hardy adder
#

I'm trying to understand the limitations of floating origins in Unity. I wanted something like a 100kmx100km map (not visually complex) with large units in it that could be like 500 units long, something like world of warships (not multiplayer) but the camera won't be anchored to a single unit typically. It seems that's not really viable based on what I've read. If the minimum size for the characters entities is going to be several units long, can I couple floatiing origins and compress the physics scale to make it more viable?

#

Floating Origins for large maps with medium to large characters

lusty sparrow
#

Maybe divide the scale by 100? Then you'll have 5 unity long ships and 1km big map. No floating point issues. No need for a floating origin.

hardy adder
#

That kind of causes issues for smaller craft then right? Upper limit was 500, lower limit would be like 3 units. how would something like the size of a tank behave at that scale.

lusty sparrow
#

Hmm... Depends how accurate you need it to be.

hardy adder
#

I don't quite know what happens when you go too low. I'm working on something a bit like from the depths. So the vehicles would have basic suspension and what not, was planning on using the NWH vehicle physics package.

lusty sparrow
#

Suspension might break at that scale indeed.

hardy adder
#

So I might have to... scale back a bit then

#

dang

#

my expectations that is

lusty sparrow
#

I mean floating origin is not impossible, but it's not gonna be simple.

#

And it might not be cheap performance wise. Might want to consider DOTS/ECS.

hardy adder
#

I don't think I have it in me to implement DOTS/ECS from the get go

#

but I've been thinking about it

frail goblet
#

Just implement it the easy way (with the scaling suggested by dlich) and see if it breaks and adjust then if necessary.
No point to think too much ahead and discard a potentially valid trivial solution because it may not work.

hardy adder
#

That's fair, it is just a lot of work to test I suppose