File size: 2,042 Bytes
b6a38d7 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 |
DefineClass.FaceMovement = {
__parents = { "ParticleBehavior" },
-- empty, but still needed so the engine can create the proper behavior object
EditorName = "Face: Movement",
EditorSubmenu = "Orientation",
}
DefineClass.FacePoint = {
__parents = { "ParticleBehavior" },
properties = {
{ id = "center", name = "Center", editor = "point", scale = guim },
},
center = point30,
EditorName = "Face: Point",
EditorSubmenu = "Orientation",
}
DefineClass.FaceTerrain = {
__parents = { "ParticleBehavior" },
-- empty, but still needed so the engine can create the proper behavior object
EditorName = "Face: Terrain",
EditorSubmenu = "Orientation",
}
DefineClass.FaceDirection = {
__parents = { "ParticleBehavior" },
properties = {
{ id = "direction", name = "Direction", editor = "point", scale = guim },
},
direction = point(0, 0, guim),
EditorName = "Face: Direction",
EditorSubmenu = "Orientation",
}
DefineClass.FaceAlongConstDir = {
__parents = { "ParticleBehavior" },
properties = {
{ id = "direction", name = "Face along direction", editor = "point", scale = guim },
},
direction = point(0, 0, guim),
EditorName = "Face: Along Const Dir",
EditorSubmenu = "Orientation",
}
DefineClass.FaceAlongMovement = {
__parents = { "ParticleBehavior" },
properties = {
{ id = "rotate", name = "Use rotation", editor = "bool" },
},
rotate = false,
EditorName = "Face: Along Movement",
EditorSubmenu = "Orientation",
}
DefineClass.FaceSphere = {
__parents = { "ParticleBehavior" },
properties = {
{ id = "min_phi", editor = "number", default = 900, slider = true, min = 0, max = 1800, scale = 10, },
{ id = "max_phi", editor = "number", default = 900, slider = true, min = 0, max = 1800, scale = 10, },
{ id = "min_theta", editor = "number", default = 0, slider = true, min = -1800, max = 3600, scale = 10, },
{ id = "max_theta", editor = "number", default = 3600, slider = true, min = -1800, max = 3600, scale = 10, },
},
EditorName = "Face: Along Sphere Surface",
EditorSubmenu = "Orientation",
}
|