Created
July 21, 2016 21:58
-
-
Save Cervator/58a2fc8e0ff6efb28a3c472334c98b61 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
... | |
{ | |
"name": "Sample:SomeBlock", | |
"persisted": true, | |
"alwaysRelevant": false, | |
"Sample:ThrowingBlock": { | |
"x": 0.0, | |
"y": 20.0, | |
"z": 0.0 | |
} | |
}, | |
... |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"basedOn": "core:rock", | |
"displayName": "Hello Block", | |
"penetrable": true, | |
"entity": { | |
"prefab": "Sample:SomeBlock" | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"ThrowingBlock": { | |
"x": 0.0, | |
"y": 20.0, | |
"z": 0.0 | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package org.terasology; | |
import org.terasology.entitySystem.Component; | |
//import org.terasology.math.geom.Vector3f; | |
public class ThrowingBlockComponent implements Component { | |
// public Vector3f velocity; | |
public float x; | |
public float y; | |
public float z; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Working Vector3f version:
entity dump: