Skip to content

Label not adding in physics editor for phaser 3 with matter js #6059

Discussion options

You must be logged in to vote

Just inspected the json and found that there are 2 label properties:

{
	"generator_info": "Shape definitions generated with PhysicsEditor. Visit https://www.codeandweb.com/physicseditor",
	"tree": {
		"type": "fromPhysicsEditor",
		"label": "tree",
		"isStatic": true,
		"density": 0.1,
		"restitution": 0,
		"friction": 0.1,
		"frictionAir": 0.01,
		"frictionStatic": 0.5,
		"collisionFilter": {
			"group": 0,
			"category": 1,
			"mask": 255
		},
		"fixtures": [
			{
				"label": "",
				"isSensor": false,
				"vertices": [
					[ { "x":124, "y":223 }, { "x":125, "y":148 }, { "x":68, "y":194 }, { "x":68, "y":223 } ],
					[ { "x":0, "y":155 }, { "x":4, "y":158 }, { "x":17, "y":166 }, { "x"…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by PrimeTheFirst
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant