User Tools

Site Tools


guides:checklist-for-platform-collider

This is an old revision of the document!


Check list for platform collider

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.1587577704.txt.gz · Last modified: 2020/04/22 13:48 by vjraymon

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki