User Tools

Site Tools


guides:checklist-for-platform-collider

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
guides:checklist-for-platform-collider [2020/04/22 13:41] – created vjraymonguides:checklist-for-platform-collider [2021/02/23 11:55] (current) – title consistency fix minotorious
Line 1: Line 1:
-====== Check list for platform collider ======+====== Adding Platform Collider to a Building ======
  
 The Example02 contains a platform-collider: a mesh over the ground on which the villagers can climb and walk. The Example02 contains a platform-collider: a mesh over the ground on which the villagers can climb and walk.
Line 9: Line 9:
 -- Apply building asset processor -- Apply building asset processor
 myMod:registerAssetProcessor("models/myFbxName.fbx", { myMod:registerAssetProcessor("models/myFbxName.fbx", {
- DataType = "BUILDING_ASSET_PROCESSOR"+    DataType = "BUILDING_ASSET_PROCESSOR"
 }) })
 </code> </code>
  
-2) Mesh named COLLIDER (in upper case, without prefix or suffix)+2) Mesh named COLLIDER (in upper case, without prefix or suffix) in the fbx file, under the mesh of the building part ''myBuildingPart'' (should contain "Part")
  
-3) Flag PLATFORM (in upper case, without prefix or suffix, "myBuildingPart" should contain "Part")+3) Flag PLATFORM (in upper case, without prefix or suffix)
 <code lua> <code lua>
 -- Register flag assigner component on the collider's type to 'PLATFORM' -- Register flag assigner component on the collider's type to 'PLATFORM'
Line 22: Line 22:
  
 Note: Note:
 +
 1) it is possible that the builder does not climb the COLLIDER (because it is not built yet when the builder comes) 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 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 3) in order to check, you can also temporary set a texture on the COLLIDER
guides/checklist-for-platform-collider.1587577316.txt.gz · Last modified: 2020/04/22 13:41 by vjraymon

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki