void PointArrayParticleSystem::parseFrom(const ParserGroup& pg, const util::SoundMaterialParser &materialParser) {
    defaultParseFrom(pg, *m_eds);
    m_eds->modelFile = pg.getValue("model", "");
    m_eds->firstVertex = convertFromString<int>(pg.getValue("first_vertex", ""), 0);
    m_eds->lastVertex = convertFromString<int>(pg.getValue("last_vertex", ""), 0);
    m_eds->scale = convertVectorFromString(pg.getValue("scale", "1,1,1"));
    m_eds->rotation = convertVectorFromString(pg.getValue("rotation", "0,0,0"));
    m_eds->useNormalsAsDirection = static_cast<bool>(convertFromString<int>(pg.getValue("direction_from_normals", ""), 0));
    m_eds->randomizeBetweenVertices = static_cast<bool>(convertFromString<int>(pg.getValue("positions_between_vertices", ""), 0));
    m_eds->planePositions = static_cast<bool>(convertFromString<int>(pg.getValue("plane_positions", ""), 0));
}
Ejemplo n.º 2
0
void GravityPointParticleForce::parseFrom(const editor::ParserGroup& pg) {
	m_gravity = convertFromString<float>(pg.getValue("gravity", ""), 0.0f);
	m_point = convertVectorFromString(pg.getValue("point", "0,0,0"));
}