guides:checklist-for-platform-collider
This is an old revision of the document!
Add platform collider to building
The Example02 contains a platform-collider: a mesh over the ground on which the villagers can climb and walk.
Once your building is well displayed in game, here is a simple check list to be sure you didn't forget something about the collider:
1) Processor
-- Apply building asset processor myMod:registerAssetProcessor("models/myFbxName.fbx", { DataType = "BUILDING_ASSET_PROCESSOR" })
2) Mesh named COLLIDER (in upper case, without prefix or suffix)
3) Flag PLATFORM (in upper case, without prefix or suffix, “myBuildingPart” should contain “Part”)
-- Register flag assigner component on the collider's type to 'PLATFORM' myMod:configurePrefabFlagList("models/myFbxName.fbx/Prefab/myBuildingPart", { "PLATFORM" })
Note:
1) it is possible that the builder does not climb the COLLIDER (because it is not built yet when the builder comes)
2) a villager can climb vertical faces of a COLLIDER
3) in order to check, you can also temporary set a texture on the COLLIDER
guides/checklist-for-platform-collider.1587594630.txt.gz · Last modified: 2020/04/22 18:30 by vjraymon