Skip to content

eXponenta/pixi-poly

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Custom polygons exporter for PhysicsEditor

Go to official manual for installing it: https://www.codeandweb.com/physicseditor/tutorials/customize_physicseditor_exporter

OR

  • Clone repo
  • Move it to another folder, ex: CustomExporters/
  • Open PhysicsEditor -> File -> Preferences
  • Select folder where you copied cloned repo (CustomExporters) in Custom exporter directory
  • Restart PhysicsEditor
  • Select Pixi (Polygons) in Exporter dropdown
  • PROFIT!!!

Supports:

  • Exporting original or reshaped hulls
  • Exporting hull's points as flat array or array of arrays
  • Exporting compressed or pretty JSON
  • Grouping fixtures hulls by labels or they IDs
  • Disableing body node. Export fixtures from all bodies into one list.
  • Export normalized points relative source size
  • Export fixture boundings

Usage

Simple demo (PIXIJS): https://www.pixiplayground.com/#/edit/gnzNV59uF29mzcItXEXOU

Omporter demo (PIXIJS) : https://codesandbox.io/embed/pedantic-roentgen-w9qpj