Comments (3)
It should work if you set the map to (0, 0, 0) and only move the player.
The code in question is in GetMapPosition
and GetWorldspacePosition
in MapBehaviour
, although it should work without chaning anything.
from wavefunctioncollapse.
It should work if you set the map to (0, 0, 0) and only move the player.
The code in question is in
GetMapPosition
andGetWorldspacePosition
inMapBehaviour
, although it should work without chaning anything.
What I need is a custom coord for 'Map' object tho...
I tried making a parent to contain these two and modified .position to .localPosition in MapBehaviour.cs but still no luck.
https://i.imgur.com/YyhfepU.jpg
from wavefunctioncollapse.
In the default setup, the map has a "Generate Map Near Player" behaviour. You can give it a target transform and it it will generate the map around the area where the target transform is (by default that's the player). But this only works if the Map transform is at (0, 0, 0). You can remove the GenerateMapNearPlayer behaviour. Then, nothing will generate at all and you can move the map where you want and write your own script that calls
Collapse(Vector3Int start, Vector3Int size, bool showProgress = false)
.
You can do that by calling mapBehaviour.Map.Collapse(...
. The start and size paramters are numbers of blocks relative to the position of the Map transform. If you do that, I recommend you also remove the Culling related behaviours.
from wavefunctioncollapse.
Related Issues (16)
- Ceilings in passageways have no collision detection
- Request : Port code to Ubuntu via dot net core or mono? HOT 7
- Development on a Mac? HOT 4
- Change size of module HOT 4
- CS0103 Error -> BuildMethodException HOT 2
- Mathf.log is logₑ unless you specific a 2nd argument HOT 2
- Help: Occlusion Culling for multiple cameras HOT 1
- stairs that are not 45 degrees HOT 3
- Amazing work HOT 4
- minimal starter set , HOT 4
- Module cannot be reached HOT 2
- Great work! Plans for porting it to Unreal Engine?
- Use package manager version of Post Processing HOT 3
- Request: UV/Map textured models :D HOT 1
- Unity scene generates only partial map HOT 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from wavefunctioncollapse.