Skip to content

Terasology/ItemRendering

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

58 Commits
 
 
 
 
 
 
 
 

Repository files navigation

RenderItemComponent

Add this to entities and they will display in the world. This rendered version's location becomes a child of the owning entity (like the containing inventory).

CustomRenderedItemMeshComponent

When the entity gets an RenderItemComponent added, it will use this mesh and material instead of the default block or item.

Minimal Usage on a prefab

{
    "CustomRenderedItemMesh" : {
        "mesh" : "UriOfYourMesh",
        "material" : "UriOfYourMaterial"
    }
}

AnimateRotationComponent

When the entity gets a AnimateRotationComponent added, it will rotate continuously.

Minimal Usage on a prefab

{
    "AnimateRotation" : {
        "yawSpeed|pitchSpeed|rollSpeed" : <float value in rotations per second>
    }
}

Defaults

{
    "AnimateRotation" : {
        "yawSpeed" : "0",
        "pitchSpeed" : "0",
        "rollSpeed" : "0",
        "isSynchronized" : "false"
    }
}

AnimateBounceComponent

When the entity gets a AnimateBounceComponent added, it will bounce continuously.

Minimal Usage on a prefab

{
    "AnimateBounce": {
        "maxHeight" : 10.0,
        "period" : 10.0
    }
}

A combination of AnimateBounceComponent and AnimateRotationComponent can be watched on YouTube.